AllenFang / AllenFang/react-bootstrap-table

React bootstrap-table Column Search Filter issue

Aberta
#1,984 0 comentários 0 reações 0 responsáveis Ver no GitHub
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

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.