As a newcomer to Vuetify and Vue in general, I am struggling to solve a specific issue. I need to create multiple sub-groups where only one option can be selected within each "parent" list.
Consider an array of cats:
options:["Crookshanks", "Garfield", "Leeroy"]
These cats are divided into 2 sub-groups (see pseudo code below)
subgroup 1
Crookshanks
Garfield
subgroup 2
Leeroy
I have successfully managed to display the text content of the selected item, but now I want to implement some visual changes such as highlighting or adding a check mark to indicate the selection. This should be a toggle effect where only one item can be selected at a time, clearing the effect on the previously selected item when a new one is chosen. Unfortunately, manually setting an active class did not work for me (I suspect it's not supported for sub-groups):
<v-list-item
active-class="selectedCat">
If you'd like to experiment with this concept, check out this Codepen link. Your assistance would be greatly appreciated!