【发布时间】:2020-04-30 06:45:39
【问题描述】:
我的列过滤器正在工作,我现在要做的是创建一个默认过滤器,它将应用于表创建。
<table id="testTable"
data-side-pagination="server">
<thead>
<tr>
<th class="question" data-field="UserFullName" data-sortable="false" data-filter-control="select">Name: </th>
<th class="question" data-field="UserJobTitle" data-sortable="false" data-filter-control="select" data-filter-data="var:userJobTitles">JobTitle: </th>
</tr>
</thead>
<script>
var userJobTitles = {
Admin: 'Admin',
IT: 'IT',
General : 'General',
Security : 'Security',
CEO : 'CEO',
};
</script>
在此示例中,我想将 IT Jobtitle 设为默认职位。 这似乎接近解决方案bootstrap-table / How to add filter-control in table configuration,问题是我不想在javascript方面这样做。
【问题讨论】:
标签: bootstrap-table