Extra Solutions
someWebixView.addView({ $scope:this, view:"someWebixView" /* the rest of config */} [,position])// views/start.js
import {JetView} from "webix-jet";
export default class StartView extends JetView {
config(){
return {
view:"form", width:300, elements:[
{ view:"button", value:"Add a button" }
]
};
}
}// views/start.js
import {JetView} from "webix-jet";
export default class StartView extends JetView {
config(){
return {
view:"form", width:300, elements:[
{ view:"button", value:"Add a button", click: () => {
this.changeView();
} }
]
};
}
changeView(){
this.getRoot().addView({
$scope: this,
view:"button",
value:"Added"
});
}
}