JQuery DataTable - need to change label based on row value at runtime

enter image description here

Below the table developed in jQuery DataTable You need to add a label for the condition based on the condition, if the status is "0", then "Inactivate" and "1" is Asset.

+4
source share
1 answer

Have you explored fnRowCallback ?
http://datatables.net/usage/callbacks#fnRowCallback

If you look at an example on the DataTables website, and play with the jsbin example, this certainly seems to be what you are looking for ...

+2
source

Source: https://habr.com/ru/post/1392314/


All Articles