Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Access to UIKeyboardTypeNumberPad for numeric data entry?

Does Titanium Mobile offer access to the UIKeyboardTypeNumberPad to use for numeric data entry?

— asked May 25th 2010 by Donald Hughes
  • iphone
  • numberpad
0 Comments

2 Answers

  • Accepted Answer

    Hi there Donald

    Try adding: keyboardType:Titanium.UI.KEYBOARD_NUMBER_PAD
    to your createTextFlield command

    cheers,
    Chris.

    — answered May 25th 2010 by Chris Reed
    permalink
    0 Comments
  • Yes , to a textfield you can set

    returnKeyType
    

    KEYBOARD_ASCII

    KEYBOARD_DEFAULT

    KEYBOARD_EMAIL

    KEYBOARD_NAMEPHONE_PAD

    KEYBOARD_NUMBERS_PUNCTUATION

    KEYBOARD_NUMBER_PAD

    KEYBOARD_PHONE_PAD

    — answered May 25th 2010 by Dan Tamas
    permalink
    1 Comment
    • not returnKeyType but instead

      keyboardType = Titanium.UI.KEYBOARD_DEFAULT
      

      (or any other keyboard form the ones listed above)

      — commented January 18th 2012 by Benoit Blais
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.