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

Filter a column where the value match multiple values #38

Open
vdelacerda opened this issue Aug 29, 2021 · 1 comment
Open

Filter a column where the value match multiple values #38

vdelacerda opened this issue Aug 29, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@vdelacerda
Copy link

Is there a way to filter a column with multiple values ?
An example : filter the rows where a column equal 'value1' OR 'value2'.
Maybe on using an array despite a value in the bind with filterSelection I tried to add an array despite a value :

selection {
  'col1': ['value1', 'value2']
}
@dasDaniel
Copy link
Owner

No, an array is currently not supported, however, you could hack it by concatenating the strings

example: https://svelte.dev/repl/68c6e3aba5c4435aa063a4cf7946e928

in the example 👆, I'm using a special ascii character that the user is unlikely to enter ¦

searchValue: v => [v.title, v.airdate].join(' ¦ '),

@dasDaniel dasDaniel added the enhancement New feature or request label Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants