Stores app configuration settings (both default and the ones you added to the JetApp constructor).
// app.js
import { JetApp } from "webix-jet";
export class App extends JetApp {
constructor(config) {
const defaults = {
name:"App",
version: VERSION,
debug: DEBUG,
start: "/top",
};
super({ ...defaults, ...config });
}
}
// index.html
const app = new App({
url: "//localhost:3200/",
});
app.render(document.body);
// views/top.js
export default class TopView extends JetView {
config(){
const appconf = this.app.config;
/*
{
"name":"App",
"version":"1.0",
"start":"/top",
"debug":true,
"url":"//localhost:3200/"
}
*/
}
}
A promise that resolves when the app is rendered.
// index.html
const app = new App();
app.render(document.body);
app.ready.then(() => {
/* do something */
});