Difference between revisions of "TextInputDialog:setInputType"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.8<br/> === Description === <br /> Sets the input (keyboard) type associated with the text field. The options are:<br /> <br /> &l...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2012.8<br/> | + | <languages /> |
− | === Description === | + | '''<translate>Available since</translate>:''' Gideros 2012.8<br/> |
− | < | + | '''<translate>Class</translate>:''' [[Special:MyLanguage/TextInputDialog|TextInputDialog]]<br/> |
− | Sets the input (keyboard) type associated with the text field. The options are:< | + | |
− | < | + | === <translate>Description</translate> === |
− | + | <translate> | |
− | + | 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> | |
− | </ | + | |
− | '''type | + | |
+ | <syntaxhighlight lang="lua"> | ||
+ | TextInputDialog:setInputType(type) | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | === <translate>Parameters</translate> === | ||
+ | '''type''': (string) <translate>Tnput type associated with the text field.</translate> <br/> | ||
+ | |||
+ | {{TextInputDialog}} |
Latest revision as of 15:33, 13 July 2023
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.