[Feature Request] more flexible command filtering for dynamic data #1154
HuakunShen
started this conversation in
Feature Requests / Ideas
Replies: 1 comment
-
|
The At the moment, there isn't a plan to add granular group filtering, it's just custom filtering for all or default filtering for all. Perhaps it is something we can look into in the future should there be more demand. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature in detail (code, mocks, or screenshots encouraged)
Currently the command component https://next.bits-ui.com/docs/components/command#custom-filter
has a
shouldFilterprop to control filtering.Can the prop be applied to
Command.Group?Here is a sample scenario:
I can't provide all these commands, otherwise it will be too slow to render and filter. I have to set
shouldFilter=falsethen do custom filter on it, but this also disabled default filtering for the other 2 small groups, and I lose the sorting by command score feature for all of them.Proposed solution:
shouldFiltera prop for each groupMoreover, it would be nice if the value field for command item can be js object rather than string.
Sometimes I have to
JSON.stringifyan object into value andJSON.parsein custom filtering function, this affects performance a lot.What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
No response
Beta Was this translation helpful? Give feedback.
All reactions