Back

ShowTextDialog

Hello World

Shows a text input dialog with a title to allow the user to input some text.

app.ShowTextDialog( title, default, callback )

Example - Input Name

function OnStart()
{
    app.ShowTextDialog( "Type your Name:", "", OnInputName );
}

function OnInputName( name )
{
    app.ShowPopup( "Your name is " + name );
}
    Copy     Copy All       Run      
string
function( text )