-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to import plugin from https://market.nativescript.org/ #20
Comments
Hi, Install the plugin as normal
then you need to register the new field as a tag: import { NativeElementNode, registerElement } from "svelte-native/dom"
import { MaskedTextField } from 'nativescript-masked-text-field'
registerElement('maskedTextField', () => new NativeElementNode('maskedTextField', MaskedTextField as any)) you can then use it in your components <maskedTextField class="input input-border" mask="(999) 999-9999" text="{maskedValue}" keyboardType="phone"></maskedTextField> |
Nice, thank you 👍 |
MaskedEdit works like a charm.
|
Elements requiring templates are a bit harder. You need to create a custom element for it, and register that instead https://github.com/halfnelson/svelte-native-grocery/blob/master/app/RadListViewElement.ts |
Svelte + native rocks ... :)
Is there easy way to import UI plugin (MaskedTextField for example ) from https://market.nativescript.org/
and use it in svelte markup as component?
Thanks
The text was updated successfully, but these errors were encountered: