Difference between revisions of "TextInputDialog"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2012.8<br/> === Description === <br /> The `TextInputDialog` class is used to display native text inp...")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' <br/>
+
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Available since:''' Gideros 2012.8<br/>
 
'''Available since:''' Gideros 2012.8<br/>
 
=== Description ===
 
=== Description ===
 
<br />
 
<br />
 
The `TextInputDialog` class is used to display native text input dialogs with one text edit field, one button (as cancel button) and two optional buttons. When the user presses any buttons in the alert dialog, it&#039;s dismissed and `Event.COMPLETE` event is dispatched.<br />
 
The `TextInputDialog` class is used to display native text input dialogs with one text edit field, one button (as cancel button) and two optional buttons. When the user presses any buttons in the alert dialog, it&#039;s dismissed and `Event.COMPLETE` event is dispatched.<br />
If text input dialog is dismissed by any other means (by pressing back button on Android or by pressing close button on desktop), it behaves as cancel button is pressed.<br />{|-
+
If text input dialog is dismissed by any other means (by pressing back button on Android or by pressing close button on desktop), it behaves as cancel button is pressed.<br />
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[TextInputDialog.new]] - <br/>
 +
[[TextInputDialog:getInputType]] - <br/>
 +
[[TextInputDialog:getText]] - <br/>
 +
[[TextInputDialog:isSecureInput]] - <br/>
 +
[[TextInputDialog:setInputType]] - <br/>
 +
[[TextInputDialog:setSecureInput]] - <br/>
 +
[[TextInputDialog:setText]] - <br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 +
[[Event.COMPLETE]]
 
=== Constants ===
 
=== Constants ===
 +
[[TextInputDialog.EMAIL]]
 +
[[TextInputDialog.NUMBER]]
 +
[[TextInputDialog.PHONE]]
 +
[[TextInputDialog.TEXT]]
 +
[[TextInputDialog.URL]]
 
|}
 
|}

Revision as of 08:57, 23 August 2018

Supported platforms: android, ios, mac, pc
Available since: Gideros 2012.8

Description


The `TextInputDialog` class is used to display native text input dialogs with one text edit field, one button (as cancel button) and two optional buttons. When the user presses any buttons in the alert dialog, it's dismissed and `Event.COMPLETE` event is dispatched.
If text input dialog is dismissed by any other means (by pressing back button on Android or by pressing close button on desktop), it behaves as cancel button is pressed.










Methods

TextInputDialog.new -
TextInputDialog:getInputType -
TextInputDialog:getText -
TextInputDialog:isSecureInput -
TextInputDialog:setInputType -
TextInputDialog:setSecureInput -
TextInputDialog:setText -

Events

Event.COMPLETE

Constants

TextInputDialog.EMAIL TextInputDialog.NUMBER TextInputDialog.PHONE TextInputDialog.TEXT TextInputDialog.URL