Bootstrap 4 引导表,group-by-v2插件在示例中不起作用
我正在使用JQuery引导表,对数据进行分组。在此处找到:。 这里给出的示例当前显示了一个额外的行(在JSON中找不到),但没有创建展开-折叠图标或功能 我错过什么了吗? 这是我在HTML文件中使用的代码:Bootstrap 4 引导表,group-by-v2插件在示例中不起作用,bootstrap-4,bootstrap-table,Bootstrap 4,Bootstrap Table,我正在使用JQuery引导表,对数据进行分组。在此处找到:。 这里给出的示例当前显示了一个额外的行(在JSON中找不到),但没有创建展开-折叠图标或功能 我错过什么了吗? 这是我在HTML文件中使用的代码: <link href="../lib/bootstrap-table/src/extensions/group-by-v2/bootstrap-table-group-by.css" rel="stylesheet"/> <link href
<link href="../lib/bootstrap-table/src/extensions/group-by-v2/bootstrap-table-group-by.css" rel="stylesheet"/>
<link href="../lib/bootstrap-table/src/bootstrap-table.css" rel="stylesheet"/>
<link href="../lib/bootstrap-table/src/extensions/filter-control/bootstrap-table-filter-control.css" rel="stylesheet"/>
<link rel="stylesheet" href="../lib/bootstrap4-editable/css/bootstrap-editable.css">
...
<script type="text/javascript" src="../util/bootstrap-table.js"></script>
<script src="../lib/bootstrap-table/src/extensions/editable/bootstrap-table-editable.js"></script>
<script src="../lib/bootstrap-table/src/extensions/filter-control/bootstrap-table-filter-control.js"></script>
<script src="../lib/bootstrap-table/src/extensions/group-by-v2/bootstrap-table-group-by.js"></script>
我复制粘贴了上面链接中提供的示例中的全部内容。我发现此扩展(group-by-v2)没有此功能。 我找到了另一个做这项工作的分机。 树网格扩展()
<table id="summGrid" data-toolbar="#summToolbar" data-search="true" data-show-refresh="true" data-show-toggle="true"
data-show-fullscreen="true" data-show-columns="true" data-detail-view="false" data-show-export="true" data-click-to-select="true"
data-group-by="true" data-group-by-field="shape" data-url="./tree.json"
data-pagination="true" data-filter-control="true" data-show-footer="true" data-unique-id="id" data-id-field="id">
<thead>
<tr>
<th data-field="shape">Shape</th>
<th data-field="color">Color</th>
<th data-field="area">Area</th>
</tr>
</thead>
</table>
[
{
"id": 1,
"shape": "triangle",
"color": "red",
"area": 5,
"label": "T1"
},
{
"id": 2,
"shape": "triangle",
"color": "green",
"area": 27,
"label": "T2"
},
...