AllenFang / AllenFang/react-bootstrap-table

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

Offen
#1,531 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
2.2k
Forks
761
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.