Button and if/else statement in the Data Table

Hello everyone! I’m very newbie in Webix.

I have a table: http://prntscr.com/djfkze
I want to convert this table to Data Table. That’s why I have two questions:

  1. Can I add button for changing password (the second column)?
  2. How change text on the button (or on the link if I can’t add buttons to the DataTable’s columns) after click (in the third column a button changes text - when you click on a button it change text from the “Approve” to “Block” after reloading page)?

A lot of thanks for your help :slight_smile:

  1. Columns can contain any html-template, so yes, it’s possible stylize it as a button. Click on such template can be handled by in onClick. To edit a corresponding value, you can set the predefined editors, create a custom one or use the data binding (sample).

  2. If it’s a two-state button, you can stylize the checkbox editor as described here:

http://webix.com/snippet/53bc7bff (the snippet uses Material design skin to replicate your snapshot).

Thank you very much!
It was very helpful for me :slight_smile: