We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5958310 commit 51b44d5Copy full SHA for 51b44d5
extensions/group-by-v2.html
@@ -38,6 +38,35 @@
38
39
<script>
40
function mounted () {
41
- $('#table').bootstrapTable()
+ $('#table').bootstrapTable({
42
+ url: 'json/data6.json',
43
+ groupBy: true,
44
+ groupByField: 'shape',
45
+ groupByFormatter: value => $('<strong>')
46
+ .addClass('text-primary')
47
+ .text(`GROUP: ${value}`)[0]
48
+ .outerHTML,
49
+ columns: [
50
+ {
51
+ field: 'state',
52
+ checkbox: true
53
+ },
54
55
+ field: 'shape',
56
+ title: 'Shape',
57
+ sortable: true
58
59
60
+ field: 'color',
61
+ title: 'Color',
62
63
64
65
+ field: 'area',
66
+ title: 'Area',
67
68
+ }
69
+ ]
70
+ })
71
}
72
</script>
0 commit comments