Skip to content

JhtTeam/cordova-plugin-decimal-keyboard-wkwebview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-decimal-keyboard-wkwebview

Linked In Twitter Follow

Cordova plugin to show decimal keyboard on iOS devices.

Taken from mrchandoo's repo cordova-plugin-decimal-keyboard and merged with ericdesa WKWebView fix.

Install

cordova plugin add --save cordova-plugin-decimal-keyboard-wkwebview

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

About

Cordova plugin to show decimal keyboard on iOS devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 82.0%
  • JavaScript 18.0%