DataTables 1.10.4 order parameter bug
DataTables 1.10.4 order parameter bug
hubo
Posts: 45Questions: 14Answers: 0
in Bug reports
Parameter order is causing error if set like order: [0, "desc"] and only work properly when set like: order: [[0, "desc"]].
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Thanks for flagging this up - I'll check into it.
Allan
Any news on this? Seems to be still reproducing on newest release as well as in nightly.
I don't get it to work with double brackets either.
Double brackets is the way forward here. The single bracket option is not supported at this time.
If you can't getting the double brackets to work, please link to a test case showing the issue so it can be debugged.
Allan
I created a JSFiddle, hope it works:
http://jsfiddle.net/yv1v53w9/8/
ColumnDefs orderData is the one causing problems. I understand from DataTables example that this should be allowed in API.
The statement in the example is misleading I'm afraid. I will correct it.
As the
columns.orderData
reference documentation notes theorderData
parameter can be an integer or an array of integers.Allan
Fixed here and will be deployed to the site soon.