File tree 2 files changed +16
-0
lines changed
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 {
243
243
sizePerPage,
244
244
reset : false
245
245
} ) ;
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
+ }
246
254
}
247
255
248
256
// 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 {
41
41
this . selected = [ ] ;
42
42
}
43
43
44
+ isSearching ( ) {
45
+ return this . searchText !== null ;
46
+ }
47
+
48
+ isFiltering ( ) {
49
+ return this . filterObj !== null ;
50
+ }
51
+
44
52
setData ( data ) {
45
53
this . data = data ;
46
54
if ( this . remote ) {
You can’t perform that action at this time.
0 commit comments