Two of my Webix datatable columns are having buttons (defined as a template) in the cell underneath with different text. My requirement is to perform some action based on the button text when they are clicked.
To keep tahings simple, as of now I am showing an alert message which is displaying the row and column intersection information into it by the help of onItemClick:function(e, id, node).
I have made a snippet of my problem here : https://webix.com/snippet/06bd7631
The last two columns with header "Comment" and "Reason" are having buttons with text "display_msg_1" and "display_msg_2" respectively.
I need to show this corresponding button text in the alert message when they are clicked. Also the onItemClick event should not work if any other cells apart from having the button is clicked which is the ultimate purpose. Currently the alert is coming for any cell when clicked.
Kindly help me how can I get the button text in this scenario.
Thanks.