Skip to content

Instantly share code, notes, and snippets.

@dsimard
Created May 1, 2012 16:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsimard/2569198 to your computer and use it in GitHub Desktop.
Save dsimard/2569198 to your computer and use it in GitHub Desktop.
Sortable tables with Twitter Bootstrap 2
$(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