Back

ShowTextDialog

JS Py
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 );
}
from native import app

def OnStart():
    app.ShowTextDialog("Type your Name:", "", OnInputName)

def OnInputName(name):
    app.ShowPopup("Your name is " + name)
    Copy     Copy All       Run      
String
function( text )