Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show only number keyboard on Ionic/Cordova app

Tags:

I have two problems in my Ionic/Cordova app, both with numeric keyboard that I not have option to show it.

1) Password input that needs to show a numeric keyboard. It's showing a alpha numerical keyboard. If I change to numeric, I can't hide the entries (with *).

2) Numeric input that I have to insert currency mask (left to right). All options that I find runs in text input.

Anybody help me? Please!

like image 935
Willian Custódio Avatar asked Dec 03 '15 03:12

Willian Custódio


People also ask

How do I get the numbers only on my keyboard?

You can do this in the Properties panel of a Textbox. In the Properties panel of the Textbox, check 'NumbersOnly'. This allows the keyboard to be only number keys and the user can only input numbers.


1 Answers

I resolved with CSS:

<input type="number" style="-webkit-text-security:disc">

Thanks all for help!

like image 144
Willian Custódio Avatar answered Sep 17 '22 15:09

Willian Custódio