如何在bootstrap-table中保存输入值?

时间:2016-05-30 20:41:34

标签: twitter-bootstrap-3 bootstrap-table

以下是我为此问题创建的小提琴https://jsfiddle.net/hcancelik/na9ovj2v/17/

<table data-toggle="table" data-search="true" data-sort="true" data-maintain-selected="true">
<thead>
<tr>
    <th data-sortable="true">Name</th>
    <th>Stars</th>
    <th data-searchable="false">Test</th>
    <th>Description</th>
</tr>
</thead>
.... rest of the code is in the fiddle...

当您选中任意复选框或在文本输入中键入值时,如果您对表格进行排序或搜索,它们就不会持续存在。我怎样才能确保他们坚持最新的价值?

1 个答案:

答案 0 :(得分:0)

我知道这现在已经很旧了,但是当前版本的引导表在复选框和排序方面对我来说很好用。他们有这个例子:

https://examples.bootstrap-table.com/index.html#options/id-field.html