I'm learning Vue.js and I'm using the vuetify.js library and so far its been a pleasure. However I'm struggling a little to understand how events on the UI components can be called from the JS code.
In the case of the bottom navigation bar, according to the documentation it supports an event called update:active, which updates the active button. You can pass in a string or a number whichever you prefer to change which button is active. I just can't figure out how this is done from a method. For instance if I had the following button
<v-btn
color="teal"
flat
@click="update"
value="nearby"
>
and the following method could then update the bottom navigation
methods: {
update: function () {
this.bottomNav.update:active(1);
// Set the active button to 1
}
}
However this doesn't work. I'd be grateful for any info on this.