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