Use of datatables_sort shortcode parameter?
-
Very interesting plugin, thank you! I’m investigating use of this to replace a couple of very flexible plugins we’ve used in the past that are no longer supported. One must-have need is the ability to change the sort column in the shortcode (not in the table definition).
In reviewing your documentation, it looks like “datatables_sort” is a boolean, which should enable this, but I see no way to provide the actual column criteria. I can add it in the custom commands (such as “order”:[4, ‘asc’]), but then that applies to every use of that table, regardless of the shortcode calling it. In reading the datatables.js documentation, I can’t see how to pass the sort/order information via the shortcode.
Ideally, it would be something like “datatables_sort=true order=”[4, ‘asc’]” in the shortcode, or something of that kind. Can you explain if this is something only provided in the premium version? If not, how do I actually pass in the column to sort on in the shortcode itself? Or if it’s not supported at all, that would also be helpful to know.
Thanks!
The topic ‘Use of datatables_sort shortcode parameter?’ is closed to new replies.