@Karena ,
You are welcome!
destructor method destructs the calling object.
If the ui.window needs to be opened sometime or accessed while it is invisible, so hide method is used.
If ui.window needs to be completely removed from the application as a ui-element, so close method is used. In this case, if the ui.window is ever needed, it will have to be completely re-created.
If the ui.window has to be created and displayed via a button, the easiest way is to check if this ui.window is existed (if not, create it)
click(){
if ( !$$("category-win") )
webix.ui({ view:"window", id:"category-win", ... });
$$("category-win").show();
}
And hide it via hide method