Adds a more customizable list dialog or checklist dialog.
Example - AddPicker
cfg.Light
cfg.MUI
function OnStart()
{
lay = MUI.CreateLayout("Linear", "VCenter,FillXY")
tlsd = MUI.AddTextEdit(lay, 0.7, "outline", "Enter time", true)
tlsd.SetOnTouch( ShowListDialog )
tckl = MUI.AddTextEdit(lay, 0.7, "outline", "Enter date", true)
tckl.SetOnTouch( ShowChecklist )
btn1 = MUI.AddButton(lay, "Show ListDialog", null, null, "Outline")
btn1.SetOnTouch( ShowListDialog )
btn2 = MUI.AddButton(lay, "Show Checklist", null, null, "Outline")
btn2.SetOnTouch( ShowChecklist )
app.AddLayout( lay )
lst = [
{name: "Choice 1"},
{name: "Choice 2"},
{name: "Choice 3"},
{name: "Choice 4"}
]
lsd = MUI.AddListDialog(tlsd, "List Title", lst, null, "ListDialog")
ckl = MUI.AddListDialog(tckl, "List Title", lst, "#673ab7", "checklist")
}
function ShowListDialog()
{
lsd.Show()
}
function ShowChecklist()
{
ckl.Show()
}