I'm trying to use the multi-column ordering in jQuery DataTables as HTML5 data- attributes. Is this even possible?
I've already tried this:
<th>Firstname</th>
<th data-orderData="[ 3, 2 ]">Lastname</th>
but it didn't work, while this works fine:
<th data-orderable="false" data-searchable="false">Edit</th>
and I've tried to declare it as table data- attribute like this:
<table id="myTable" data-columnDefs="[ {'targets': [ 5 ], 'orderData': [ 5, 3, 2 ]} ]">
but this also didn't work, while this works fine:
<table id="myTable" data-order="[[ 5, 'asc' ], [ 3, 'asc' ], [ 2, 'asc' ]]">
I couldn't find anything in the official documentation about multi-column ordering with HTML5 data- attributes. Is this even possible to realize with HTML5 data- attributes?