05-29-2011 03:07 AM
The common Keypad in apps that appears for a text field is alphanumeric keypad. This is achieved by using
<input type="text" value="" />
Inorder to invoke a numeric keypad directly, you could use the following code.
<input type="number" value="" />
I guess this would be of some help.
05-29-2011 01:16 PM
05-29-2011 01:32 PM - edited 05-29-2011 01:33 PM
05-30-2011 01:39 AM - edited 05-30-2011 01:40 AM
Thanks for the tip, since that's a very useful little feature in HTML5 and I'm glad the PlayBook supports it.
To expand on that, I just ran a quick test and it appears that the PlayBook supports all of the new HTML5 input types, listed here: http://www.w3schools.com/html5/html5_form_input_ty
The "email" and "url" types produce two separate, slightly different, keyboard layouts tuned to each type. The date picker pops up a nice... date picker! Also seems useful for WebWorks apps, though you may have to modify/rearrange/clarify the default data it inputs into the field.
Setting a "min" and "max" for the "number" type appears to have no effect however.