Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | # ColReorder |
| 2 | |||
| 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: |
||
| 4 | |||
| 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 |
||
| 10 | |||
| 11 | |||
| 12 | # Installation |
||
| 13 | |||
| 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. |
||
| 15 | |||
| 16 | |||
| 17 | # Basic usage |
||
| 18 | |||
| 19 | ColReorder is initialised using the `R` option that it adds to DataTables' `dom` option. For example: |
||
| 20 | |||
| 21 | ```js |
||
| 22 | $(document).ready( function () { |
||
| 23 | $('#example').dataTable( { |
||
| 24 | "dom": 'Rlfrtip' |
||
| 25 | } ); |
||
| 26 | } ); |
||
| 27 | ``` |
||
| 28 | |||
| 29 | |||
| 30 | # Documentation / support |
||
| 31 | |||
| 32 | * Documentation: http://datatables.net/extensions/colreorder/ |
||
| 33 | * DataTables support forums: http://datatables.net/forums |
||
| 34 | |||
| 35 | |||
| 36 | # GitHub |
||
| 37 | |||
| 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 |
||
| 39 |