Combining DataPress Parameters
-
I have a table with the first column holding dates formatted like yyyy-mm-dd. I have the “TablePress Extension: DataTables Sorting plugins” extension installed and enabled. I’d like to have the date recognized in that format, and have the table sorted in descending date order upon load (default). When I use the following snippet the column is recognized:
"columnDefs": [ { "type": "date-us", "targets": [ 0 ] } ]
How do I include the command for the default sort? I’ve seen this listed as a sorting solution, but I’m not sure how to add it to what I have already:
"order": [ [ 0, "desc" ] ]
Thanks for the tips!
The page I need help with: [log in to see the link]
- The topic ‘Combining DataPress Parameters’ is closed to new replies.