Is it possible to trigger webix function from inside a template?
Here is my code sample:
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:
Hi @integral I don't think the solution is working.
The returned ID is not the valid one.
If you are talking about getting the HTML element parameters, you could use the getAttribute method: https://snippet.webix.com/ll4bn8je.
Thanks @Dzmitry .. It's perfect!
It looks like you're new here. If you want to get involved, click one of these buttons!