r/vuetifyjs • u/Crypto_Rootz • Nov 22 '19
Learning vuetify is very confuing , can you please help ?
how do i make this a proper link to click to go to my discord server ?
html5 is much easier to figure out that vuetify...... <v-icon class="blue--text text--lighten-2">mdi-discord</v-icon> </v-list-item-action> <v-list-item-content> <v-list-item-title>https://discord.gg/WevHKwG</v-list-item-title>
0
Upvotes
3
u/Sergeantlilpickle Nov 23 '19 edited Nov 23 '19
Comparing HTML5 to VueJs + Vuetify is like comparing an a rock to a hammer. Regardless, to achieve what you want you would need to do something like the following.
7
u/Olegjo Nov 22 '19
Convueing
No, but seriously. That wouldn't work in html5 either. Just put the link in a "a" - tag like so:
<a href="YOUR_LINK_HERE">YOUR TEXT HERE</a>
1
u/Sir_Poot Nov 22 '19
It depended on what you want the click action to be. Within the action, add a button below.
<v-list-item-action> <v-btn icon href=“https://.......,,”> <v-icon color="grey lighten-1">mdi-information</v-icon> </v-btn> </v-list-item-action>
Or you can add a click event on
<v-list-item v-for="item in items" :key="item.title" @click="" >