-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
column-based filtering #135
Comments
You could do this with a header template and then just filtering the rows via normally but only including that in your function. We tend to shy away from implementing these type of features since they are pretty specific to your business use case how you want to present filtering, the options that you want to allow and controls to do which additionally how to filter ( client or server ). Instead I think a demo of how to accomplish this would be better than a core feature. |
@amcdnl first thanks. Please apologize In documentation I do not have example of headerTemplate, the tools is very nice but doc site is poor, when I type in input search doc: noresult! I have to try each example to find this ? Or do you have some plunker example thanks |
No problem! The doc is not our library and ya I agree the search is pretty hit and miss. I just realized there is no demo up on the docs, here is a demo in the code tho - https://github.com/swimlane/angular2-data-table/blob/master/src/demos/template.ts#L22 |
@amcdnl please apologize I try to apply what you say but no successs (I catch against solution since 6days) I think the demo page aren't very expressives could you get a look to my plunker http://plnkr.co/edit/fFGt2X6h1ZN8TfSuEi6K?p=preview Juste click on button "Get data1" and you will see the first column header isn't replaced by input, I tried tempalte solution ... just switch between component.ts and component.html, thanks a lot! |
@istiti if you can do a good plunker on this that will be very help full for the community. |
I am also looking forward a stable and dynamic column filter as expected! |
Please find a working plunker here: |
Did anyone ever make a working version of this? |
For some weird reason, my plunks are not running as expected. Please try the below: .TS file: FilterData(event) { Let me know if this works. |
Is it now in Scope? |
PRPOSITION:
Does it envisageable add filter input under each column ? A litle like http://i.imgur.com/ERUHmza.png
The text was updated successfully, but these errors were encountered: