File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 220
220
< li > < a href ="#options/search-align.html "> Search Align</ a > </ li >
221
221
< li > < a href ="#options/search-highlight.html "> Search Highlight</ a > </ li >
222
222
< li > < a href ="#options/search-on-enter-key.html "> Search On Enter Key</ a > </ li >
223
+ < li > < a href ="#options/table-search-selector.html "> Search Selector</ a > </ li >
223
224
< li > < a href ="#options/search-text.html "> Search Text</ a > </ li >
224
225
< li > < a href ="#options/search-time-out.html "> Search Time Out</ a > </ li >
225
226
< li > < a href ="#options/server-side-pagination.html "> Server Side Pagination</ a > </ li >
Original file line number Diff line number Diff line change
1
+ < script >
2
+ init ( {
3
+ title : 'Table Search' ,
4
+ desc : 'Use `searchSelector` to define a custom search input (e.g. `#customSearch`).' ,
5
+ links : [ 'bootstrap-table.min.css' ] ,
6
+ scripts : [ 'bootstrap-table.min.js' ]
7
+ } )
8
+ </ script >
9
+
10
+
11
+ < input type ="text " id ="customSearch " style ="background-color: #007788;color: white; ">
12
+ < table
13
+ id ="table "
14
+ data-toggle ="table "
15
+ data-search ="true "
16
+ data-search-selector ="#customSearch "
17
+ data-url ="json/data1.json ">
18
+ < thead >
19
+ < tr >
20
+ < th data-field ="id "> ID</ th >
21
+ < th data-field ="name "> Item Name</ th >
22
+ < th data-field ="price "> Item Price</ th >
23
+ </ tr >
24
+ </ thead >
25
+ </ table >
You can’t perform that action at this time.
0 commit comments