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

Default value in initial filter state #690

Closed
marknelissen opened this issue Sep 14, 2015 · 1 comment
Closed

Default value in initial filter state #690

marknelissen opened this issue Sep 14, 2015 · 1 comment

Comments

@marknelissen
Copy link

It would be nice to have an option when defining the filters to give them a default value. The use case we have, is that the default view of the list should be to only show the clients of the current user, but with an option to deactivate this filter to view all clients. Currently this is not possible, since the permanent filter cannot be interacted with by the user, and we cannot set a default value in a regular filter, that is applied on first/initial visit to the page.

The idea is to be able to specify what the initial state of the filters should look like, including values, on first visit or after reset, instead of the current behaviour of setting all filters to blank.

@fzaninotto
Copy link
Member

Already done in #639, please use the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants