I want to toggle a condition from the JS snippet source for the filter.
Here’s the example JS which will return options to the filter.
var filterItems = ;I want to add one more item to this
filterItems.push({ label: ‘Cheese’, value: ‘cheese’ }); filterItems.push({ label: ‘Pizza’, value: ‘pizza’ }); return filterItems;
filterItems.push({ label: ‘** ALL’, value: ‘’ }); And this will just deactivate a certain condition. I am not able to set the attribute which will deactivate that condition.




