Inner Events and Error Handling
Calling Events
// views/top.js
import {JetView} from "webix-jet";
export default class TopView extends JetView {
config(){
return {
view:"icon",
icon:"wxi-calendar",
click: () => this.app.callEvent("app:action:calendar", [])
};
}
}Attaching Event Handlers
// views/top.js
import {JetView} from "webix-jet";
export default class TopView extends JetView {
...
init(){
this.on(this.app, "app:action:remove", id =>
this.RemoveOption(id)
);
}
RemoveOption(id){
// remove options
}
}
Error Handling and Debugging
Last updated