AllenFang / AllenFang/react-bootstrap-table
React bootstrap-table Column Search Filter issue
- Linguagem predominante
- JavaScript
- Estrelas
- 2.2k
- Forks
- 761
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.