Skip to content

Commit c39b9ef

Browse files
Added example for the regex search (wenzhixin#439)
Co-authored-by: zhixin <[email protected]>
1 parent f7890e1 commit c39b9ef

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@
211211
<li><a href="#options/pagination-v-align.html">Pagination V Align</a></li>
212212
<li><a href="#options/query-params.html">Query Params</a></li>
213213
<li><a href="#options/query-params-type.html">Query Params Type</a></li>
214+
<li><a href="#options/regex-search.html">Regex Search</a></li>
214215
<li><a href="#options/remember-order.html">Remember Order</a></li>
215216
<li><a href="#options/response-handler.html">Response Handler</a></li>
216217
<li data-show="bootstrap3,,bootstrap5"><a href="#options/row-attributes.html">Row Attributes</a></li>

options/regex-search.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script>
2+
init({
3+
title: 'Regex Search',
4+
desc: 'Use the `regexSearch` option to enable the regex search.',
5+
links: ['bootstrap-table.min.css'],
6+
scripts: ['bootstrap-table.min.js']
7+
})
8+
</script>
9+
10+
<table
11+
id="table"
12+
data-toggle="table"
13+
data-search="true"
14+
data-regex-search="true"
15+
data-url="json/data1.json">
16+
<thead>
17+
<tr>
18+
<th data-field="id">ID</th>
19+
<th data-field="name">Item Name</th>
20+
<th data-field="price">Item Price</th>
21+
</tr>
22+
</thead>
23+
</table>

0 commit comments

Comments
 (0)