AllenFang / AllenFang/react-bootstrap-table

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

Đang mở
#1,531 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
2.2k
Fork
761
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.