Will
Will

Reputation: 152

Flex Mobile Project: Numeric Keyboard

How do?

Edit the field with numeric keypad, not a full keyboard

my code:

    <s:TextInput text="{TransactionObject.cartao}" id="item" restrict="0123456789"  />

app for Android and playbook

Upvotes: 1

Views: 1377

Answers (2)

User5910
User5910

Reputation: 485

You can't get the phone keypad but you can get numbers with this and you don't even need the restrict statement:

<s:TextInput softKeyboardType="{SoftKeyboardType.NUMBER}" />

If you don't import flash.text.SoftKeyboardType just use the literal "number". Available in Flex SDK 4.6.0.

Upvotes: 1

sshongru
sshongru

Reputation: 896

The numeric keyboard is not available in the current release of Adobe AIR.

Upvotes: 4

Related Questions