-
Notifications
You must be signed in to change notification settings - Fork 55
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 Filter(s) #502
Comments
Its not possible, but if you have selected a filter, it will be stored in the user settings and will be the default filter for your account. does that help? |
Sure. It would be helpful. Is it automatic? How to do it? Any documentation on this? |
Its not available yet, but we can add this feature 👍 should not be to hard to develop. |
Its not filter on just one single field. We should be able to have something called a 'Filter Group', that should hold a set of filters(with search criteria) on several fields. |
but this is not the topic you mentioned in the start of the issue? |
Yes. What I mentioned was an enhancement to the previous requirement. I first talked about default filter criteria on one field only. |
Well, filters can have as much criterias as you like, its a where condition. But maybe you like to use Tags, then you can also filter by tags. |
Exactly. I dont know how feasible this requirement is, but would be helpful. |
Sure. |
@siripravi You can already use tags to filter data, just add the TaggableTrait trait and TaggableActiveWindow and you are done. |
What steps will reproduce the problem?
I have defined these filters in my NgModel:
public function ngRestFilters() { return [ 'Deleted' => self::find()->where(['=', 'is_deleted', 1]), 'Active' => self::find()->where(['=', 'is_deleted', 0]), ]; }
What is the expected result?
I want to show 'Active' Items by default.
Is it possible to set some filter as default?
What do you get instead? (A Screenshot can help us a lot!)
LUYA Check ouput (run this script and post the result: luyacheck.php)
Additional infos
The text was updated successfully, but these errors were encountered: