Difference between revisions of "TextInputDialog:setInputType"
From GiderosMobile
Line 3: | Line 3: | ||
'''<translate>Available since</translate>:''' Gideros 2012.8<br/> | '''<translate>Available since</translate>:''' Gideros 2012.8<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/TextInputDialog|TextInputDialog]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/TextInputDialog|TextInputDialog]]<br/> | ||
+ | |||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
− | <translate | + | <translate> |
− | Sets the input (keyboard) type associated with the text field. The options are: | + | Sets the input (keyboard) type associated with the text field. The options are: |
− | < | + | <ul> |
− | + | <li>[[Special:MyLanguage/TextInputDialog.TEXT|TextInputDialog.TEXT]]: Default keyboard type</li> | |
− | + | <li>[[Special:MyLanguage/TextInputDialog.NUMBER|TextInputDialog.NUMBER]]: Numeric keypad</li> | |
− | + | <li>[[Special:MyLanguage/TextInputDialog.PHONE|TextInputDialog.PHONE]]: Keypad designed for entering telephone numbers</li> | |
− | + | <li>[[Special:MyLanguage/TextInputDialog.EMAIL|TextInputDialog.EMAIL]]: Keyboard optimized for specifying email addresses</li> | |
− | + | <li>[[Special:MyLanguage/TextInputDialog.URL|TextInputDialog.URL]]: Keyboard optimized for URL entry</li> | |
− | + | </ul> | |
− | + | </translate> | |
− | + | ||
+ | |||
<source lang="lua"> | <source lang="lua"> | ||
− | + | TextInputDialog:setInputType(type) | |
</source> | </source> | ||
+ | |||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''type''': (string) <translate>Tnput type associated with the text field.</translate> <br/> | '''type''': (string) <translate>Tnput type associated with the text field.</translate> <br/> | ||
+ | |||
+ | {{TextInputDialog}} |
Revision as of 01:55, 4 December 2019
Available since: Gideros 2012.8
Class: TextInputDialog
Description
Sets the input (keyboard) type associated with the text field. The options are:
- TextInputDialog.TEXT: Default keyboard type
- TextInputDialog.NUMBER: Numeric keypad
- TextInputDialog.PHONE: Keypad designed for entering telephone numbers
- TextInputDialog.EMAIL: Keyboard optimized for specifying email addresses
- TextInputDialog.URL: Keyboard optimized for URL entry
TextInputDialog:setInputType(type)
Parameters
type: (string) Tnput type associated with the text field.