window element, how it works

I am trying to show/hide a window element but do not seem to get to do that.
I tried several combinations (create 2 separate webix.ui, use the $$(‘idname’).show() command, use a function instead) but none really worked for a simple task of showing the window when the button is clicked:

http://webix.com/snippet/5670a08f

where is my mistake please?

cheers

Check the updated snippet

  • window moved to separate webix.ui command
  • container property removed from window’s config
  • onclick:“userLogin” is replaced with onclick:userLogin

About the last one, when you are using name of methods as string, component will try to find a global method with such name, and in case of snippet tools all function are created in the local closure, so such way of assigning handler will not work ( it may work in case of standalone html app, but it is still better to assign methods directly instead of using a string with method name)

the sippet was not saved, however, based on your instructions i made it work, thaks for all your help!