3 ColReorder adds the ability for the end user to click and drag column headers to reorder a table as they see fit, to DataTables. Key features include:
5 * Very easy integration with DataTables
6 * Tight integration with all other DataTables plug-ins
7 * The ability to exclude the first (or more) column from being movable
8 * Predefine a column order
9 * Save staving integration with DataTables
14 To use ColReorder, first download DataTables ( http://datatables.net/download ) and place the unzipped ColReorder package into a `extensions` directory in the DataTables package. This will allow the pages in the examples to operate correctly. To see the examples running, open the `examples` directory in your web-browser.
19 ColReorder is initialised using the `$.fn.dataTable.ColReorder` constructor. For example:
22 $(document).ready( function () {
23 $('#example').DataTable();
25 new $.fn.dataTable.ColReorder( table );
30 # Documentation / support
32 * Documentation: http://datatables.net/extensions/colreorder/
33 * DataTables support forums: http://datatables.net/forums
38 If you fancy getting involved with the development of ColReorder and help make it better, please refer to its GitHub repo: https://github.com/DataTables/ColReorder