B4J Library [ABMaterial]: Creating a Multi Select with Tagging functionality

Ola

I'm currently trying to build up a select component that will enable multi select that works with tags. Rather tricky bugger.. Im using the Select2 javascript.

MashSelect2.gif


I am able to detect which element was selected / unselected.

B4X:
Sub mselect_select(value As Map)
    Dim files As String = value.Get("value")
    page.Msgbox("",files,"Error","OK",False,"","")
End Sub

Sub mselect_unselect(value As Map)
    Dim files As String = value.Get("value")
    page.Msgbox("",files,"Error","OK",False,"","")
End Sub

I cant seem to get the function to return the selection to work. The label does not work too.

Has anyone tried something similar for select controls? Thanks
 

Attachments

  • MashSelect2.bas
    5.5 KB · Views: 309
Top