nativescript-textfield-ex
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i nativescript-textfield-ex

Weekly Downloads

1

Version

1.0.1

License

Apache-2.0

Unpacked Size

26.8 kB

Total Files

17

Last publish

Collaborators

  • renzocastro