can’t handle window based components’ onShow / onHide events in webix jet. is there a different way for jet? currently I’m trying config’s on : { onShow : function(){} }
and $view.attachEvent
methods.
Can you please provide a sample of your code?
As far as I can see, if window/popup is defined according to the docs or using the $oninit
, it works. Something like:
$oninit:function(view){
popup = webix.ui({
view:"popup",
on:{
onShow:function(){
webix.message(this.config.id+" is shown")
}
},
body:"Custom popup",
});
popup.show();
}
You can grab the following sample and test event handlers: