A collection of functions that I have found useful with DataTables. Provides the following (largely undocumented) features:
- A simple init function
$.fn.initDataTablesthat provides common initialisation, including:- A simple data-API to augment the dataTables options using an
data-table-initattribute - Support for jQueryUI and (untested) Bootstrap styling
- Automatic creation of a
<thead>element if required - Support for hidden columns using a
th.hiddenColumnclass - Support for column filtering using the options or a
table.columnFilteringclass - Support for selectable rows using the options or a
table.selectableRowsclass
- A simple data-API to augment the dataTables options using an
$.fn.dataTableColumnFilteringprovides column-based filters$.fn.dataTableSelectableprovides selectable rows