Is it possible to trigger webix function from inside a template?
Here is my code sample:
https://snippet.webix.com/4iqgre3y
Is it possible to trigger webix function from inside a template?
Here is my code sample:
https://snippet.webix.com/4iqgre3y
Hey @tengkie, you can attach a function to the onClick
handler with the specified CSS class: https://snippet.webix.com/w2nj8vh0.
In this example, I’ve provided a class for the added HTML and referred to it in the onClick
handler.
Wow cool… Thanks for the help Dzmitry!
But, my next question is, how to get the ID or any parameter from that button? The case is I have several buttons.
Here is my updated snippet based on your previous solution:
https://snippet.webix.com/su8du8dz
If you are talking about getting the HTML element parameters, you could use the getAttribute
method: https://snippet.webix.com/ll4bn8je.