Skip to content
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

Set initial filter to nz-table component #1872

Closed
oluevano opened this issue Jul 23, 2018 · 5 comments · Fixed by #1893
Closed

Set initial filter to nz-table component #1872

oluevano opened this issue Jul 23, 2018 · 5 comments · Fixed by #1893
Assignees

Comments

@oluevano
Copy link

What problem does this feature solve?

Currently in my "nz-table" component in the header column can i set filterList in the nzFilters (input component parameter) but i can't set initial filter.

Can you help me with this wish?

Thank you

What does the proposed API look like?

I propose when set filterList input parameter on the header column, add one flag to set initial filters based on the filterList inputParameter and after this tirrger event "nzFilterChange", with this initial filter.

For example

To the [nzFilters] input parameter -> [{text: 'anyText' , value: 'anyValueId' }]

change To

[nzFilters] -> [{text: 'anyText' , value: 'anyValueId', selected : <true/false> }]

@vthinkxie
Copy link
Member

we will try to support in in next version.

@wzhudev wzhudev self-assigned this Jul 27, 2018
wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Jul 28, 2018
@wzhudev
Copy link
Member

wzhudev commented Jul 28, 2018

@oluevano You can check the deploy preview. Is that what you need?

wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Jul 28, 2018
wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Jul 28, 2018
wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Jul 28, 2018
wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Aug 3, 2018
wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Aug 3, 2018
@oluevano
Copy link
Author

oluevano commented Aug 7, 2018

@wendzhue. thank you so much, i will try this feature! and send you comments!

@oluevano
Copy link
Author

oluevano commented Aug 7, 2018

I tried the feature and it's ok!.

Thank you so much!.

wenqi73 pushed a commit to wenqi73/ng-zorro-antd that referenced this issue Aug 27, 2018
@lock
Copy link

lock bot commented Aug 7, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants