Difference between revisions of "TextInputDialog:setInputType"

Line 2: Line 2:
 
'''Available since:''' Gideros 2012.8<br/>
 
'''Available since:''' Gideros 2012.8<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
Sets the input (keyboard) type associated with the text field. The options are:<br />
 
Sets the input (keyboard) type associated with the text field. The options are:<br />
 
<br />
 
<br />
 
&lt;ul&gt;<br />
 
&lt;ul&gt;<br />
&lt;li&gt;`TextInputDialog.TEXT`: Default keyboard type&lt;/li&gt;<br />
+
&lt;li&gt;[[[TextInputDialog.TEXT]]]: Default keyboard type&lt;/li&gt;<br />
&lt;li&gt;`TextInputDialog.NUMBER`: Numeric keypad&lt;/li&gt;<br />
+
&lt;li&gt;[[[TextInputDialog.NUMBER]]]: Numeric keypad&lt;/li&gt;<br />
&lt;li&gt;`TextInputDialog.PHONE`: Keypad designed for entering telephone numbers&lt;/li&gt;<br />
+
&lt;li&gt;[[[TextInputDialog.PHONE]]]: Keypad designed for entering telephone numbers&lt;/li&gt;<br />
&lt;li&gt;`TextInputDialog.EMAIL`: Keyboard optimized for specifying email addresses&lt;/li&gt;<br />
+
&lt;li&gt;[[[TextInputDialog.EMAIL]]]: Keyboard optimized for specifying email addresses&lt;/li&gt;<br />
&lt;li&gt;`TextInputDialog.URL`: Keyboard optimized for URL entry&lt;/li&gt;<br />
+
&lt;li&gt;[[[TextInputDialog.URL]]]: Keyboard optimized for URL entry&lt;/li&gt;<br />
 
&lt;/ul&gt;<br />
 
&lt;/ul&gt;<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
  TextInputDialog:setInputType(type)
 
  TextInputDialog:setInputType(type)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''type''': (string) Tnput type associated with the text field. <br/>
+
'''type''': (string) <translate>Tnput type associated with the text field.</translate> <br/>

Revision as of 14:34, 23 August 2018

Available since: Gideros 2012.8

Description


Sets the input (keyboard) type associated with the text field. The options are:

<ul>
<li>[[[TextInputDialog.TEXT]]]: Default keyboard type</li>
<li>[[[TextInputDialog.NUMBER]]]: Numeric keypad</li>
<li>[[[TextInputDialog.PHONE]]]: Keypad designed for entering telephone numbers</li>
<li>[[[TextInputDialog.EMAIL]]]: Keyboard optimized for specifying email addresses</li>
<li>[[[TextInputDialog.URL]]]: Keyboard optimized for URL entry</li>
</ul>

 TextInputDialog:setInputType(type)

Parameters

type: (string) Tnput type associated with the text field.