How do I display a numeric keyboard with a decimal button on iOS and Android? Is there an Ionic-specific way to do this?
I'm able to display a numeric keyboard on both iOS and Android with the following:
<input type="number" pattern="[0-9]*">
iOS appears to disregard the type
of value "number" and displays the number pad based off the pattern
attribute, but the type
is set to "number" anyway for Android.
Edit: Forgot to mention that I have tried pattern="[0-9.]*"
. iOS simply shows the full keyboard when I do this.
Edit2: I've also tried pattern="\d+[,.]?\d*"
- again, to no avail.