AllenFang / AllenFang/react-bootstrap-table

Is there any way to import the TextFilter and the others?

Aberta
#1,531 1 comentário 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

Actually, the filters are based on the TableHeaderColumn's `dataFormat` prop. I have two tables in my page, and their datas, altought different, have the same structure (same key names).

So, for one of these tables, I need to apply a different behaviour on the filtering process, because I apply the filter values on the URL and, since the datas have the same structure, when I go to the page, I must know which value corresponds to which table. I thought about creating a HOC which applies my behaviour and then return the TextFilter, for example. Looking in the `lib/index.js` file, I can see that the default filter components can't be imported into the my project.

Is there any way to accomplish that? Should we be able to do that?

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.