Created
May 1, 2012 16:08
-
-
Save dsimard/2569198 to your computer and use it in GitHub Desktop.
Sortable tables with Twitter Bootstrap 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready -> | |
$(".table-sortable").dataTable | |
aaSorting: [] # disable default sort (remove this line to enable it) | |
bPaginate: false # Remove pagination | |
bFilter: false # Remove filter | |
bInfo: false # Remove useless info | |
# Columns with .unsortable class are not sortable | |
aoColumnDefs : [ | |
'bSortable': false, | |
'aTargets': ['unsortable'] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment