nativescript-textfield-ex
v1.0.1
Published
TextField with extended KeyboardType.
Downloads
11
Maintainers
Readme
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