Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify: Add Button or Link to Expansion Panel Header

Self-explanatory in title: how to add a button or a link inside the header of the vuetify expansion panel component?

When clicking the link or button, the expansion panel default behavior should not engage.

like image 805
mtyson Avatar asked Aug 20 '18 21:08

mtyson


2 Answers

Using @click.native.stop Example

<v-btn fab white small color="white" class="button-payment"
   @click.native.stop="onDoSomeThing">Do something</v-btn>
like image 155
Viroth Avatar answered Sep 19 '22 22:09

Viroth


By using @click.native.stop on button or link inside expansion panel header it will trigger your click and will prevent the default behavior of expansion panel.

like image 39
ZaidRehman Avatar answered Sep 20 '22 22:09

ZaidRehman