You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm very beginner user of Vuetify.
I'm trying to implement closable tabs.
So far I have found a similar question on stackoverflow but I can't reproduce it exactly.
My attemt now is:
<!-- App.vue -->
<template><v-app><v-main><template><v-tabs><v-tab>
Item One
<v-btnicon @click="removeTab(index)"class="ml-2"><v-iconx-small>mdi-close</v-icon></v-btn></v-tab><v-tab>
Item Two
<v-btnicon @click="removeTab(index)"class="ml-2"><v-iconx-small>mdi-close</v-icon></v-btn></v-tab><v-tab>
Item Three
<v-btnicon @click="removeTab(index)"class="ml-2"><v-iconx-small>mdi-close</v-icon></v-btn></v-tab></v-tabs></template></v-main></v-app></template><script>exportdefault{name: 'App'}</script>
The problem is that I don't know how to implement the function removeTab(index).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm very beginner user of Vuetify.
I'm trying to implement closable tabs.
So far I have found a similar question on stackoverflow but I can't reproduce it exactly.
My attemt now is:
The problem is that I don't know how to implement the function
removeTab(index)
.Maybe somebody knows that.
Beta Was this translation helpful? Give feedback.
All reactions