B4J Library [ABMaterial]: MashCardPanel

Mashiane

Expert
Licensed User
Hi there

The MashCardPanel seeks to be a container card panel that you can theme also adding some buttons on it to perform some operations.


Coming soon to MashPlugIns.

Adding this to your page is simple as ABC..

B4X:
Dim mp As MashCardPanel
    mp.Initialize(page,"mp","My Card Panel","Testing my card panel",12,12,12,"")
    'mp.HeaderTheme = MashPlugIns.EnumThemes.info
    mp.AddMenuButton("info","mdi-info_outline",MashPlugIns.EnumThemes.warn)
    mp.AddMenuButton("help","mdi-help_outline",MashPlugIns.EnumThemes.danger)
    mp.AddMenuButton("refresh","mdi-loop",MashPlugIns.EnumThemes.info)
    mp.AddMenuButton("menu","mdi-more_vert",MashPlugIns.EnumThemes.success)
    page.Cell(2,1).AddComponent(mp.ABMComp)
And trapping the events...

B4X:
Sub mp_click(value As Map)
    Dim valuex As String = value.Get("value")
    page.Msgbox("",valuex,"","OK",False,"","")
End Sub
No background, themed buttons...

MashCardPanel.png
 
Top