当使用的引导表版本高于1.14.2时,我的过滤器控件不再起作用。我想有一个选择字段(我有),但是从下拉字段中选择任何值时,不会过滤任何内容。对于1.14.2版,它运行得很好。
我正在用php脚本填充表格。选择字段中的值在那里,只是不进行过滤。
我正在网站上使用最新版本的Joomla
1.14.2的有效版本:https://12ndr.at/entry-ranking-men-old 1.15.3版本无效:https://12ndr.at/entry-ranking-men
<link href="https://unpkg.com/bootstrap-table@1.14.2/dist/bootstrap-table.min.css" rel="stylesheet">
<script src="https://unpkg.com/bootstrap-table@1.14.2/dist/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.14.2/dist/extensions/filter-control/bootstrap-table-filter-control.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.14.2/dist/extensions/accent-neutralise/bootstrap-table-accent-neutralise.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.14.2/dist/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<div class="table-responsive table-sm small">
<table class="table table-bordered table-striped table-hover table-condensed" data-filter-control="true" data-search="true" data-search-accent-neutralise="true" data-search-align="left" data-sort-name="Position" data-sortable="true" data-toggle="table" data-url="https://12ndr.at/scripts/ranking.php?gender=m">
<thead>
<tr>
<th colspan="4" data-halign="center"> </th>
<th colspan="3" data-halign="center">Entry Ranking</th>
<th colspan="3" data-halign="center">World Ranking</th>
</tr>
<tr>
<th data-field="Position" data-order="asc" data-sortable="true">Position</th>
<th data-field="TeamName" data-sortable="true" data-width="500" data-width-unit="%">Team</th>
<th data-field="Federation" data-filter-control="select" data-filter-control-placeholder="Country" data-sortable="true"> </th>
<th data-field="Flag" data-sortable="false"> </th>
<th class="font-weight-bold" data-field="EntryPointsTeam" data-sortable="true">Points</th>
<th data-field="EntryPointsPlayer1" data-sortable="true">Points #1</th>
<th data-field="EntryPointsPlayer2" data-sortable="true">Points #2</th>
<th class="font-weight-bold" data-field="RankingPointsTeam" data-sortable="true">Points</th>
<th data-field="RankingPointsPlayer1" data-sortable="true">Points #1</th>
<th data-field="RankingPointsPlayer2" data-sortable="true">Points #2</th>
</tr>
</thead>
</table>
</div>