"order" option but use columname instead of number
"order" option but use columname instead of number
wyattbiker
Posts: 25Questions: 14Answers: 0
Is there a way to define the order to use name of column instead of #?
columns: [
{data: 'last'},
{data: 'first}
],
order: [[ 'last' ,asc]]
Would prefer something like above if that is possible or some other concept so if a columns position shifts it doesn't affect the ordering.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
According to the
order
docs only the column index is supported.Kevin
The ability to use the column name (
columns.name
rather thancolumns.data
) is something that I plan to introduce in future, but it currently is not supported.Allan