AllenFang / AllenFang/react-bootstrap-table

React bootstrap-table Column Search Filter issue

未關閉
#1,984 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。