I am trying to set up a context item with simple text “Click here” on a button. I tried to set the “master” of the context to the webix ID of the button, but there is an error “Invalid node as target for webix.event”.
How do I:
Set the context to the button
Programmatically show the context (without right-clicking) and then have it hide on its own (using a timer or something similar).
(2) If you want to show a popup on right-clicking, you can provide a context component for the button. The correct way to set a Webix component as a master for the context is pointing to its topmost HTML element as component.$view:
You can call the show() method of a Popup or Context (both of them are just windows) and pass a button’s node as a parameter to set the correct position: