Bootstrap 表默认排序 [英] Bootstrap table default sorting
本文介绍了Bootstrap 表默认排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用引导表,并且第一列有默认排序.如何更改默认列并选择另一个并使用(升序/降序)
I using bootstrap table and there is a default sorting of first column. How can I change default column and choose another and using (Ascending/Descending)
推荐答案
您可以在表中使用 data-sort-name 和 data-sort-order
You can use data-sort-name and data-sort-order in your table
例如:
<table data-toggle="table" data-sort-name="date" data-sort-order="desc">
文档在这里http://bootstrap-table.wenzhixin.net.cn/documentation/
这篇关于Bootstrap 表默认排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文