corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 # Table Resizable
2  
3 Use Plugin: [bootstrap-table-resizable](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/resizable) </br>
4 Dependence: [colResizable](https://github.com/alvaro-prieto/colResizable) v1.5
5  
6 ## Usage
7  
8 ```html
9 <script src="extensions/cookie/bootstrap-table-resizable.js"></script>
10 ```
11  
12 ## Options
13  
14 ### resizable
15  
16 * type: Boolean
17 * description: Set true to allow the resize in each column.
18 * default: `false`
19  
20 ### liveDrag
21  
22 * type: Boolean
23 * description: When set to true the table layout is updated while dragging column anchors. liveDrag enabled is more CPU consuming so it is not recommended for slow computers, specially when dealing with huge or extremely complicated tables.
24 * default: `false`
25  
26 ### fixed
27  
28 * type: Boolean
29 * description: It is used to set how the resize method works. In fixed mode resizing a column does not alter total table width, which means that when a column is expanded the next one shrinks. If fixed is set to false then table can change its width and each column can shrink or expand independently.
30 * default: `true`
31  
32 ### headerOnly
33  
34 * type: Boolean
35 * description: This attribute can be used to prevent vertical expansion of the column anchors to fit the table height. If it is set to true, column handler's size will be bounded to the first row's vertical size.
36 * default: `false`
37  
38 ### minWidth
39  
40 * type: Integer
41 * description: This value specifies the minimum width (measured in pixels) that is allowed for the columns.
42 * default: `15`
43  
44 ### hoverCursor
45  
46 * type: String
47 * description: This attribute can be used to customize the cursor that will be displayed when the user is positioned on the column anchors.
48 * default: `e-resize`
49  
50 ### dragCursor
51  
52 * type: String
53 * description: Defines the cursor that will be used while the user is resizing a column.
54 * default: `e-resize`
55  
56 ### onResizableResize
57  
58 * type: Function
59 * description: If a callback function is supplied it will be fired when the user has ended dragging a column anchor altering the previous table layout. The callback function can obtain a reference to the updated table through the currentTarget attribute of the event retrieved by parameters.
60 * default: `empty function`
61  
62 ### onResizableDrag
63  
64 * type: Function
65 * description: This event is fired while dragging a column anchor if liveDrag is enabled. It can be useful if the table is being used as a multiple range slider. The callback function can obtain a reference to the updated table through the currentTarget attribute of the event retrieved by parameters
66 * default: `empty function`