corrade-nucleus-nucleons – Blame information for rev 24
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | # Table Reorder Columns |
2 | |||
3 | Use Plugin: [bootstrap-table-reorder-columns](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/reorder-columns) </br> |
||
4 | Dependence: [dragTable](https://github.com/akottr/dragtable/) v2.0.14 (must include the css file), </br> |
||
5 | [jquery-ui](https://code.jquery.com/ui/) v1.11 |
||
6 | |||
7 | |||
8 | ## Usage |
||
9 | |||
10 | ```html |
||
11 | <link rel="stylesheet" href=".../dragtable.css"> |
||
12 | <script src=".../jquery-ui.js"></script> |
||
13 | <script src=".../jquery.dragtable.js"></script> |
||
14 | <script src="extensions/reorder-columns/bootstrap-table-reorder-columns.js"></script> |
||
15 | ``` |
||
16 | |||
17 | ## Options |
||
18 | |||
19 | ### reorderableColumns |
||
20 | |||
21 | * type: Boolean |
||
22 | * description: Set true to allow the reorder feature. |
||
23 | * default: `false` |
||
24 | |||
25 | ### maxMovingRows |
||
26 | |||
27 | * type: Integer |
||
28 | * description: Moving only the header. Recommended for very large tables (cells > 1000) |
||
29 | * default: `10` |
||
30 | |||
31 | ### dragaccept |
||
32 | |||
33 | * type: String |
||
34 | * description: Allow to drag only the rows that have the css class as attribute. |
||
35 | * default: `null` |
||
36 | |||
37 | ## Events |
||
38 | |||
39 | ### onReorderColumn(reorder-column.bs.table) |
||
40 | |||
41 | Fired when the column was dropped, receive as parameter the new header fields order |