In jquery data table I can disable specific column sort by
"aoColumnDefs": [{
'bSortable': false,
'aTargets': [0, 7]
}]
Anyone know how to do this in angular JS?
<table class="custom-table" datatable="ng" dt-options="dtOptions" id="contacts-list-table">
</table>
myApp.controller("ListCtr", ['DTOptionsBuilder', function(DTOptionsBuilder) {
$scope.dtOptions = DTOptionsBuilder.newOptions().withDOM('C<"clear">lfrtip')
}])
this code hiding my search bar but not able to hide sort feature of my first and fourth column?
The angular-datatables equivalence to
is
...
You must include
DTColumnDefBuilder
in the controller :see http://l-lin.github.io/angular-datatables/archives/#!/api.