Can i customize the datatable property names
Can i customize the datatable property names
![prashant530](https://secure.gravatar.com/avatar/3327c8c3defb89889c00bd0cc14160e0/?default=https%3A%2F%2Fvanillicon.com%2F3327c8c3defb89889c00bd0cc14160e0_200.png&rating=g&size=120)
Hi ,
I would like to know if I can change or customize my datatable properties as that of my model properties?
Also, can you please tell me if I could pass the sortcolumn and sortorder as strings rather than int or array?
Thanks in advance.
Prashant.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Do you mean changing, for example,
order
to be calledtableOrder
? If so, sure, modify the DataTables source code.You could use the
column().index()
method to convert the string selector / name into the column index.Allan