edusperoni / nativescript-ripple

NativeScript plugin to add Android Material Design Ripple effect to your layouts.
Apache License 2.0
52 stars 13 forks source link

Does this work for Nativescript+Vue? #25

Open mashinokatsumi opened 5 years ago

elie-g commented 5 years ago

I found how to use it with NativeScript-Vue. Just add the following to your main.js file:

import Vue from 'nativescript-vue'

Vue.registerElement('Rippler', () => require('nativescript-ripple').Ripple);

My webstorm still complains about the type of rippleColor property but it works anyway. Let me know if anyone knows how to solve this. :wink:

edusperoni commented 3 years ago

If anyone wants to add vue integration I'll gadly merge the PR

zamblas commented 3 years ago

<Label ripple text="my label text" (tap)="tapfn()"></Label>

Can this be done on Vue?

SlavMAK commented 2 years ago

Hello. The method described by @elie-g works. Please add it to the description. It seems that this will be enough.