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

Ability to choose and AND / ONLY INCLUDES vs OR behaviour on multiple filters... #66

Open
squidgemonster opened this issue Jul 2, 2024 · 0 comments

Comments

@squidgemonster
Copy link

squidgemonster commented Jul 2, 2024

Hello - me again! This may be a stretch, or too complex to achieve. But I have a potential use case where it would be useful to only show items that have ALL of (or ONLY INCLUDES a subset of) the filter selections.

To make this concept a little bit clearer... you gave the red, blue and purple box example in the documentation, adding 'red' and 'blue' to the purple block.

By default purple will display if either 'red' OR 'blue' are selected.

With an AND rule, purple would only be shown if the 'red' AND 'blue' filters were selected.

To expand this further, consider the following items + tags:

🔴 (1)
🔵 (2)
🟣 (1,2)
🟢 (1,2,3)
🟠 (1,2,3,4)
🟡 (1,2,3,4,5)
🟤 (2,3)

If I filtered by '1', the current rule-set would show all items except 🟤

With an AND rule, filtering by '1' would only show 🔴 - '2' would only show 🔵 - '1' AND '2' would only show 🟣 etc...

With an ONLY INCLUDES rule - if I filtered by '1,2,3' it would show: 🔴, 🔵, 🟣, 🟢, 🟤

🟠 and 🟡 would be excluded as '4' and '5' haven't been selected...

It may be stretching things a little far. But I would be curious to hear your thoughts :)

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

1 participant