B4J Library [ABMaterial]: MashCardPanel

Discussion in 'B4J Libraries & Classes' started by Mashiane, Dec 21, 2017.

  1. Mashiane

    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..

    Code:
    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...

    Code:
    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
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice