Ola
Get Library + Source Code
I'm trying to get this component running. I need a way to select multiple items from a list, so I found this here.
Just need to put it in a container and make it have a title and then return selected items.
To select items automatically via code, you can...
This will include these items on the selected items, other methods exist too, see the attached code.
Get Library + Source Code
I'm trying to get this component running. I need a way to select multiple items from a list, so I found this here.
Just need to put it in a container and make it have a title and then return selected items.
B4X:
page.AddExtraCSSFile("custom/multi-select.css")
page.AddExtraJavaScriptFile("custom/jquery.multi-select.js")
Dim mms As MashMultiSelect
mms.Initialize(page,"mms")
mms.AddItem("elem_1","Element 1",True)
mms.AddItem("elem_2","Element 2",False)
mms.AddItem("elem_3","Element 3",False)
mms.AddItem("elem_4","Element 4",False)
mms.AddItem("elem_5","Element 5",False)
mms.AddItem("elem_6","Element 6",False)
page.Cell(1,1).AddComponent(mms.ABMComp)
To select items automatically via code, you can...
B4X:
mms.ClearSelection
mms.AddSelection("elem_6")
mms.AddSelection("elem_5")
mms.SelectItems
This will include these items on the selected items, other methods exist too, see the attached code.
Last edited: