I have a question,
I have some buttons in a v-for, and I need to allow the user to select from A to C for example, as I show in the graphic. Also, the user can press a button, for example, D. my v-for looks like this
<menu-item
v-for="(item, index) in menu"
:key="`item_${index}`"
@click="setMenuItem(index, item.name)"
/>
then I have data property selectedItems where I add all the item when the user clicks on setMenuItem().
The option when the user clicks just in one Item work fine but when the user has selected from A to C, I can't make it work.
Generally, What I need, is when clicking on a range of buttons from A to C for example, I want to push into my selectedItems data property each item.name which I pass a second argument into my setMenuItem()
Graphic graphic