Ajax Statu Check (0-1=>active-passive)
Ajax Statu Check (0-1=>active-passive)

// All Users List Function
var table = $('#allUsers').DataTable({
ajax: '/api/user/all_users_list',
'columns' :[
{'data':'id'},
{'data':'statu'},
]
});
In this way, I pull my data to the datatable. What I want is to be written as passive if the status data is 0 and active if it is 1.
I searched but couldn't find any results.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
columns.render
for this. See this example.Kevin