-
Notifications
You must be signed in to change notification settings - Fork 19
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 Snapshot]: Unable to read the 'value' value from the filter snapshot. #76
Comments
Hi @Patrick386 , Thank you for bringing up the issue you're facing with reading the The reason you're unable to access the To resolve this issue, you need to explicitly cast your For example, if you have a Filter filter = ... // Your Filter object
if (filter is FilterFacet) {
FilterFacet facetFilter = filter as FilterFacet;
// Now you can access facetFilter.value
} Similarly, you can perform the cast for |
I need a page with a fixed menu order. My question was about creating a menu selector. For example, I have the following menu items: 'All, Music, News, Interior, Nature'. If there is no data available for a selected menu, it should display an empty page. Each menu item is implemented as a single toggle, and for 'All', I have implemented it using the method '_filterState.clear();'. I have already implemented it, but if there are any recommended approaches, please let me know. I also needed a menu selector with a multi-toggle approach that required the 'filter value' of the searched data. I have implemented it by reading the manual. Thank you in advance. |
Unable to read the 'value' value from the filter snapshot.
value: product
INFO: filter>>>>:{FilterFacet{attribute: type, isNegated: false, value: product, score: null}}
I want to display the selected filter value list in the UI, but I am unable to read the 'value'.
The text was updated successfully, but these errors were encountered: