Skip to content

When to use Backpex.Filters.Boolean vs Backpex.Filters.MultiSelect #631

Answered by Flo0807
John-Goff asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! I think the docs are a little misleading here. While both filters render a list of checkboxes, the MultiSelect filter wraps these inputs into a select input that you can open and close. I guess the difference between these two filters is mostly in the UI.

I would suggest using the Boolean filter if you have a handful of predefined values (e.g. a published status of a post or a list of predefined categories). Once you start loading options dynamically, e.g. if you want to filter for specific users, I recommend using the MultiSelect filter, as you can open and close it.

We started with the Boolean filter. Then we had a requirement where we needed to filter for specific users in a selec…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by John-Goff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants