Creating Complex Widgets
How to Create
// sources/newwidget.js
import {JetApp} from "webix-jet";
export default class NewWidgetApp extends JetApp {
constructor(){
const defaults = {
id : APPNAME,
version : VERSION,
debug : !PRODUCTION,
router : EmptyRouter,
start : "/top/start"
};
super({ ...defaults, ...config });
}
}
// this!
if (!BUILD_AS_MODULE){
webix.ready(() => new MyApp().render() );
webix.protoUI({
name:"new-widget",
app: NewWidgetApp
}, webix.ui.jetapp);Very Important
Last updated