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

Can I search multiple values? #24

Open
usfslk opened this issue Dec 16, 2019 · 1 comment
Open

Can I search multiple values? #24

usfslk opened this issue Dec 16, 2019 · 1 comment

Comments

@usfslk
Copy link

usfslk commented Dec 16, 2019

I have an array of 3 different values, it is possible to search across the three of them?

@farouqBenarous
Copy link

yes of course this is the function that i am using

` const ApplyFilter =(Filters , newdata ) =>{
if (isEmptyList(Filters )) {
// to not delete my data
SetFiltredData(props.opportunities)
return;
}
for(var filter of Filters) {
newdata[props.currentStatusView] = newdata[props.currentStatusView].filter(
(item) => {
return item["search Key "] === filter.value
}
)
}
// just to update my new data you can make it as return
SetFiltredData (newdata)

}`

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

2 participants