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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Table group-by
 
Use Plugin: [bootstrap-table-group-by](https://github.com/djhvscf/bootstrap-table-group-by) </br>
Dependence: [jquery-treetable](https://github.com/ludo/jquery-treetable/) v3.2.0 </br>
You must include the bootstrap-table-group-by.css file in order to get the appropriate style
 
## Usage
 
```html
<script src="extensions/group-by/bootstrap-table-group-by.js"></script>
```
 
## Options
 
### groupBy
 
* type: Boolean
* description: Set true to group the data by the field passed.
* default: `false`
 
### groupByField
 
* type: Array
* description: Set the array fields that you want to group the data.
* default: `[]`
 
### groupBySumGroup
 
* type: Boolean
* description: Set to True to include a sum per column.
* default: `false`
 
### groupByInitExpanded
 
* type: Boolean
* description: You can use the node number (parent row index) or you can use the `all` option in order to expand all nodes of the table.
* default: `undefined`
 
## Methods
 
### expandAll
 
* Expand all the nodes in the table.
 
### collapseAll
 
* Collapse all the nodes in the table.
 
## Column options
 
### groupBySumGroup
 
* type: Boolean
* description: Set to True to sum the column values.
* default: `false`
 
 
## Known issues
 
### OnSort
 
* When sort options are set to True the group by is not working properly, for now if these properties are set to True the group by extension will be disabled.