Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Latest commit

 

History

History
39 lines (27 loc) · 1.4 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.4 KB

cordova-plugin-decimal-keyboard

Cordova plugin to show decimal keyboard on iPhones

Installing

cordova plugin add https://github.com/mrchandoo/cordova-plugin-decimal-keyboard.git

Usage

<input type="text" pattern="[0-9]*" decimal="true">

Input type number will not work, try to use text with [0-9] pattern instead.

Multiple decimals

<input type="text" pattern="[0-9]*" decimal="true" allow-multiple-decimals="true">

Different decimal character

<input type="text" pattern="[0-9]*" decimal="true" allow-multiple-decimals="false" decimal-char=",">

If you want to localize decimal character, you can change using decimal-char attribute

Known Issues

  • Does not handle screen rotation.

License

This project is licensed under the MIT License - see the LICENSE file for details