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

PickList reset filters feature #4589

Closed
bartosz-brodzik opened this issue Dec 1, 2017 · 4 comments
Closed

PickList reset filters feature #4589

bartosz-brodzik opened this issue Dec 1, 2017 · 4 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@bartosz-brodzik
Copy link

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
After typing something into filter it stays there untill we manually remove it or change it

Expected behavior
It would be great to be able to reset filters from our code. For instance if someone type an email and move all the users from source to target I would like to clear the filters. Now it stays as we typed it with no way to reset it.

  • Angular version: 5.0.X
  • PrimeNG version: 4.3.0-rc.2
@cagataycivici
Copy link
Member

How about adding a reset() method?

@cagataycivici cagataycivici added the Status: Discussion Issue or pull request needs to be discussed by Core Team label Dec 19, 2017
@cagataycivici cagataycivici added this to the 5.1.0-M1 milestone Dec 19, 2017
@bartosz-brodzik
Copy link
Author

That would be great

@cagataycivici cagataycivici self-assigned this Dec 24, 2017
@cagataycivici cagataycivici added Type: New Feature Issue contains a new feature or new component request and removed Status: Discussion Issue or pull request needs to be discussed by Core Team labels Dec 24, 2017
@cagataycivici cagataycivici changed the title PickList reset filters PickList reset filters feature Dec 24, 2017
@cagataycivici
Copy link
Member

Added resetFilter with an example in doc.

@N1k0la-89
Copy link

N1k0la-89 commented Aug 4, 2024

[showSourceFilter]="someVarOnCloseBecomesZeroOnOpenBecomesOne > 0"
[showTargetFilter]="someVarOnCloseBecomesZeroOnOpenBecomesOne > 0"

this way you can enable filterBar onModalOpen, and disable filterBar onModalClose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

3 participants