When using data-search-selector it doesn't detect search-text
See original GitHub issueBootstraptable version(s) affected: All? tried on 5 and on the live editor.
Description
I am setting up a data-search-selector to use sticky search and search-text just change the value of that input, but doesn’t execute the search.
Example
https://live.bootstrap-table.com/code/eliezra236/8439
Possible (optional)
I made some attempts of changing it way later (trough button that execute:
$("#table").bootstrapTable("refreshOptions", {
searchText: "testing",
});
And it does the same thing, changes the text in the input but doesn’t execute the search.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Table Options - Bootstrap Table
The custom search function is executed instead of the built-in search function, takes three parameters: data : the table data. text : the...
Read more >Using the Isotope plugin, can I filter by string name and make ...
I solved filtering by string but still need help with with images overlapping. ... default: iso.isotope({ filter: function() { var name = $(this).find('....
Read more >https://raw.githubusercontent.com/wenzhixin/bootst...
`text`: the search text. * `filter`: the filter object from `filterBy` method. Example usage: {% highlight javascript %} function customSearch(data, ...
Read more >Bootstrap table search filter example
Datatables has a selector-modifier option that that can be used with the rows () API to get the rows in the currently sorted...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
By manually you mean to change the value inside the text field manually? that works. If you mean to change the data-search-text with something like refreshOption then no it still doesn’t work.
The bug is that changing search-text won’t affect the search-selector, not initially when first loaded and not when changed using refreshOption
Oh okay, you mean the initial search (
data-search-text="item 2"
) dont work ? I can reproduce that, do you also have issues while searching a other value manually ?