Back

ShowCheckList

Hello World

The check list provides a similar functionality to the “Multi” ListDiaog, although you can adjust its initial check states with an object structure.

ckl = app.ShowCheckList( title, list, callback, width, height, options ) → app object: CheckList

Example

function OnStart()
{
    app.ShowCheckList( "Select Animals", "Sheep:true,Cows:false,Pigs:false", OnFinish, 0.8, 0.5 );
}

function OnFinish( data )
{
    if( data )
        app.ShowPopup( JSON.stringify(data) );
    else
        app.ShowPopup( "Cancelled" );
}
    Copy     Copy All       Run      
string
number: fraction (0..1)
string: “sun-moon”
string: title:checked
object: { title, check }
object: { title, checked }
function( data )