Can i customize the datatable property names
Can i customize the datatable property names
prashant530
Posts: 2Questions: 1Answers: 0
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