Hi
I am trying to filter a DetailsList by getting the values from a Select.
I am able to filter the DetailsList by using hard-coded text but I'd like to be able to loop through the selected options and check for those.
Thanks
S
private handleChange = (selectedOptions) => {
this.setState({
selectedOptions,
Items: Text ? this._allItems.filter(i => i.Category.toLowerCase().indexOf("choice 1") > -1) : this._allItems
});
selectedOptions.forEach(function (value) {
console.log(value);
console.log(value.value);
console.log(value.label);
});
}
Top comments (0)