Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82029

HTML5 Data attributes on initialisation

$
0
0

So I am trying to add data-sort attribute on initialisation of the datatable. Mainly for use of sorting dates or numbers.
datatables attribute
However after googling and searching I couldn't find how to do this in the .DataTable() initialisation.

Anyone have suggestion or can link to another post which shows it?
Something like having it in the columns option if this is doable:
.DataTable({columns: [{ data: 'date'}]})


Viewing all articles
Browse latest Browse all 82029

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>