File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,14 @@ class BootstrapTable extends Component {
243243 sizePerPage,
244244 reset : false
245245 } ) ;
246+
247+ if ( this . store . isSearching && options . afterSearch ) {
248+ options . afterSearch ( this . store . searchText , this . store . getDataIgnoringPagination ( ) ) ;
249+ }
250+
251+ if ( this . store . isFiltering && options . afterColumnFilter ) {
252+ options . afterColumnFilter ( this . store . filterObj , this . store . getDataIgnoringPagination ( ) ) ;
253+ }
246254 }
247255
248256 // If setting the expanded rows is being handled externally
Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ export class TableDataStore {
4141 this . selected = [ ] ;
4242 }
4343
44+ isSearching ( ) {
45+ return this . searchText !== null ;
46+ }
47+
48+ isFiltering ( ) {
49+ return this . filterObj !== null ;
50+ }
51+
4452 setData ( data ) {
4553 this . data = data ;
4654 if ( this . remote ) {
You can’t perform that action at this time.
0 commit comments