| 9 |
lars |
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. See the [documentation](http://datatables.net/extensions/colreorder/) for full details.
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
# Basic usage
|
|
|
7 |
|
|
|
8 |
ColReorder is initialised using the `colReorder` option in the DataTables constructor - a simple boolean `true` will enable the feature. Further options can be specified using this option as an object - see the documentation for details.
|
|
|
9 |
|
|
|
10 |
Example:
|
|
|
11 |
|
|
|
12 |
```js
|
|
|
13 |
$(document).ready( function () {
|
|
|
14 |
$('#myTable').DataTable( {
|
|
|
15 |
colReorder: true
|
|
|
16 |
} );
|
|
|
17 |
} );
|
|
|
18 |
```
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
# Documentation / support
|
|
|
22 |
|
|
|
23 |
* [Documentation](https://datatables.net/extensions/colreorder/)
|
|
|
24 |
* [DataTables support forums](http://datatables.net/forums)
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
# GitHub
|
|
|
29 |
|
|
|
30 |
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
|
|
|
31 |
|