Replies: 10 comments 5 replies
-
+1 This would be highly useful because right now filters are kinda inconsistent with Nova 4. |
Beta Was this translation helpful? Give feedback.
-
That would make a lot of sense to have. |
Beta Was this translation helpful? Give feedback.
-
It's incredibly easy to use https://nova.laravel.com/docs/4.0/resources/fields.html#filterable-fields You just add I guess adding it to the detached panel would be a combination of iterating over all fields and figuring out which ones have the |
Beta Was this translation helpful? Give feedback.
-
Took a quick peek inside Nova, to see how they do it. Nova has a function called |
Beta Was this translation helpful? Give feedback.
-
In Laravel Nova 4, you can use the availableFilters method to get a list of all filters that are available for a resource. This method returns an array of filter instances, including both user-defined filters and the default filters for filterable fields. Here's an example:
|
Beta Was this translation helpful? Give feedback.
-
It will create the filters, but it will not work, try to open any select filters, it will automatically close without even start doing anything |
Beta Was this translation helpful? Give feedback.
-
Hello guys, i have solved by:
Hope this can help you! |
Beta Was this translation helpful? Give feedback.
-
If there is somebody willing to integrate this into our package, I'd review it and would merge if it wouldn't cause any issues regarding backwards compatibility. |
Beta Was this translation helpful? Give feedback.
-
I was able to get this working, and it's very helpful. But I can't set the width of it with the withMeta thing. Is that something that could be addressed? |
Beta Was this translation helpful? Give feedback.
-
If anybody would like to take a crack at this issue, I'd be more the happy to review the pull request. |
Beta Was this translation helpful? Give feedback.
-
I was wondering if you think this would be possible. Nova 4 has a nifty feature where you can mark most fields as
->filterable()
and it will automatically create filters for those. But those filters of course only appear in the filter dropdown which is cumbersome.Would it be possible to have these filters appear in the detached panes that this plugin allows for. This would save a lot of time and code in having to create basic filters that are otherwise handled by simply adding
->filterable()
to simple fields.Beta Was this translation helpful? Give feedback.
All reactions