AllenFang / AllenFang/react-bootstrap-table
React bootstrap-table Column Search Filter issue
- 主要言語
- JavaScript
- スター
- 2.2k
- フォーク
- 761
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
On the react-bootstrap-table, I'm having trouble hooking into any of the column filter events. They don't seem to fire where I can modify display logic based on what's filtered in the way that the overall table search does fire an event when you just include "search" per table.
filter={{ type: 'TextFilter', delay: 1 }} this seems to not fire anything for afterSearch:
...
afterSearch(searchText, result) {
console.log('entered afterSearch');
var data = this.getFooterData(result);
if (this.previousSearchText != searchText) {
this.setState({ footerData: data });
}
this.previousSearchText = searchText;
}
render() {
const options = {
afterSearch: (searchText, result) => this.afterSearch(searchText, result)
};
...
Is there some good example of how to hook into column search filter --> particularly before and after?
Thanks, John
コントリビューションガイド
評価
この issue はまだ評価されていません。