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
exportdefault{name: 'Home',ready: function(){this.$on('option-selected',function(msg){console.log(msg)})},methods: {doStuff: function(){//How do I get the option data here?}}}
The text was updated successfully, but these errors were encountered:
You just need to pass a method name and it will be called with the selected option. Notice it is doStuff and not doStuff(). The second strips the argument.
Try the following and it should call doStuff with the selected option:
Thanks for a great looking component package!
I'm trying to catch an event but I'm not sure how to do it. The
@option-selected
triggers, but how can I get the data from the event?The text was updated successfully, but these errors were encountered: