Difference between revisions of "TextInputDialog:setInputType"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2012.8<br/>
'''<translate>Available since</translate>:''' Gideros 2012.8<br/>
+
'''Class:''' [[TextInputDialog]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/TextInputDialog|TextInputDialog]]<br/>
 
 
 
=== <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>
 
 
 
  
 +
=== Description ===
 +
Sets the input (keyboard) type associated with the text field.
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
TextInputDialog:setInputType(type)
 
TextInputDialog:setInputType(type)
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== <translate>Parameters</translate> ===
+
The options are:
'''type''': (string) <translate>Tnput type associated with the text field.</translate> <br/>
+
*[[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
 +
 
 +
=== Parameters ===
 +
'''type''': (string) input type associated with the text field<br/>
  
 
{{TextInputDialog}}
 
{{TextInputDialog}}

Revision as of 09:29, 26 August 2024

Available since: Gideros 2012.8
Class: TextInputDialog

Description

Sets the input (keyboard) type associated with the text field.

TextInputDialog:setInputType(type)

The options are:

Parameters

type: (string) input type associated with the text field