npm i --save nativescript-textfield-ex
- Version: 1.0.1
- GitHub:
- NPM: https://www.npmjs.com/package/nativescript-textfield-ex
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
NativeScript TextField Extended
TextField Extended for allow only numbers (1234567890).
Now you can use a new value for keyboardType property: digits.
<TextFieldEx keyboardType="digits"></TextFieldEx>
Installation
tns plugin add nativescript-textfield-ex
Demo app (Core)
Check out the demo folder.
Usage
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded" class="page"
xmlns:ui="nativescript-textfield-ex">
<StackLayout class="p-20">
<!-- Plugin -->
<ui:TextFieldEx hint="0000" class="tf-ex" keyboardType="digits"></ui:TextFieldEx>
<!-- Original -->
<TextField hint="0000" class="tf-ex" keyboardType="number"></TextField>
</StackLayout>
</Page>
License
Apache License Version 2.0, January 2004