-
My menu has some items that behave like toggle switch when clicked. They flip the value of a boolean variable in the vuex store that is used in a filter for the displayed list. This works. What I'm still missing is providing a visual feedback of the state of the boolean by showing and hiding a check icon on the right of the menu text. I used a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Problem solved. I made a stupid error. I retrieved the boolean from the vuex store with the expression |
Beta Was this translation helpful? Give feedback.
Problem solved. I made a stupid error. I retrieved the boolean from the vuex store with the expression
this.$store.checked
instead ofthis.$store.state.checked
. Once I fixed that, the menu is properly updated when the state of the vuex variable changes. It is very impressive.