Skip to content
Cordova plugin to show decimal keyboard on iPhones
Objective-C JavaScript
Branch: master
Clone or download
Latest commit 128c964 Jul 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
screenshots Add files via upload Apr 1, 2017
src/ios added support for WKWebView Dec 16, 2017
www support for restricting multiple , Jul 5, 2017
LICENSE Add files via upload Apr 1, 2017
README.md Updated known issues Apr 2, 2017
package.json Added package.json Aug 15, 2018
plugin.xml update plugin.xml Nov 16, 2018

README.md

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

You can’t perform that action at this time.