Difference between revisions of "TextInputDialog:setInputType"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
Line 17: | Line 17: | ||
− | < | + | <syntaxhighlight lang="lua"> |
TextInputDialog:setInputType(type) | TextInputDialog:setInputType(type) | ||
</source> | </source> |
Revision as of 14:31, 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
<syntaxhighlight lang="lua">
TextInputDialog:setInputType(type)
</source>
Parameters
type: (string) Tnput type associated with the text field.