vue-feather-icon
vue-feather-icon copied to clipboard
Clickable Event
Not able to pass in @click or v-on:click to work within the Vue.js instance.. has anyone figured it out? this is what I have tried:
<feather-info
v-on:click="showInfo()" class="w-4 h-4 text-grey-light align-middle" stroke="currentColor" data-dest="infoDialogText" @click:prevent="showInfo" title="Information"></feather-info>
Got this to work... but seems to be just a work around:
<feather-info
v-bind:onclick="'window.vueapp.showInfo(event)'" class="w-4 h-4 text-grey-light align-middle" stroke="currentColor" data-dest="infoDialogText" title="Information"></feather-info>
Any ideas of why the on:click doesn't work??
in the first example, you have two @click
handlers (v-on
is the same as @
)