nativescript-textfield-ex
by Renzo Castro | v1.0.1
TextField with extended KeyboardType.
npm i --save nativescript-textfield-ex

NativeScript TextField Extended

NPM version Downloads Twitter Follow

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