Difference between revisions of "TextInputDialog.new"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.8<br/> === Description === <br /> Creates a new `TextInputDialog` object.<br /> <br /> <source lang="lua"> = TextInputDialog.new...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2012.8<br/>
 
'''Available since:''' Gideros 2012.8<br/>
 +
'''Class:''' [[TextInputDialog]]<br/>
 +
 
=== Description ===
 
=== Description ===
<br />
+
Creates a new '''TextInputDialog''' object.
Creates a new `TextInputDialog` object.<br />
+
<syntaxhighlight lang="lua">
<br />
+
TextInputDialog.new(title,message,text,cancelButton,button1,button2)
<source lang="lua">
+
</syntaxhighlight>
= TextInputDialog.new(titlemessagetextcancelButtonbutton1button2,)
+
 
</source>
+
=== Parameters ===
'''title:''' (string) ''''''<br/>
+
'''title''': (string) the title<br/>
'''message:''' (string) Descriptive text that provides more details than the title. ''''''<br/>
+
'''message''': (string) descriptive text that provides more details than the title<br/>
'''text:''' (string) The text on the text field. ''''''<br/>
+
'''text''': (string) the text on the text field<br/>
'''cancelButton:''' (string) The text of the cancel button. ''''''<br/>
+
'''cancelButton''': (string) the text of the cancel button<br/>
'''button1:''' (string, optional) The text of the 1st optional button. ''''''<br/>
+
'''button1''': (string, optional) the text of the 1st optional button<br/>
'''button2:''' (string, optional) The text of the 2st optional button. ''''''<br/>
+
'''button2''': (string, optional) the text of the 2nd optional button<br/>
 +
 
 +
{{TextInputDialog}}

Latest revision as of 15:33, 13 July 2023

Available since: Gideros 2012.8
Class: TextInputDialog

Description

Creates a new TextInputDialog object.

TextInputDialog.new(title,message,text,cancelButton,button1,button2)

Parameters

title: (string) the title
message: (string) descriptive text that provides more details than the title
text: (string) the text on the text field
cancelButton: (string) the text of the cancel button
button1: (string, optional) the text of the 1st optional button
button2: (string, optional) the text of the 2nd optional button