有人可以给我展示一个使用Bootstrap和AngularJS创建表列的示例吗?
您可以使用以下代码(代替json数据,您可以直接将数据直接放在表中):
<table id="resultTable"
data-toggle="table"
data-url="json.php"
data-show-refresh="true"
data-show-toggle="true"
data-show-columns="true"
data-search="true"
data-select-item-name="toolbar1"
data-pagination="true">
<thead>
<tr>
<th data-field="id" data-align="right" data-sortable="true">Item ID</th>
<th data-field="column1" data-sortable="true">Column1</th>
</tr>
</thead>
</table>
因此,您要查找的是data-search="true"
(搜索),data-pagination="true"
(分页)以及data-sortable="true"
(排序)。
对于编辑,我认为您需要使用其他类似的插件:https : //mindmup.github.io/editable-table/
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句