B4J Library [ABMaterial]: MashRibbon

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

  1. Mashiane

    Mashiane Expert Licensed User

    Hi there

    One can use a MashRibbon to highlight something of use.. or more... Also theme-able.



    Coming to MashPlugIns

    I've also exposed some advanced feautures like adding padding and margins for control..

    Code:
    ribbon.Initialize(page,"ribbon","Mashy","whitegreen")
        ribbon.setsizes(
    6,6,6)
        
    Dim p As HTMLElement
        p = p.CreateP(
    "").AddContent("This is a test for the Ribbon creation. Enyoy!")
        p.SetPadding(
    "10")
        p.setmargin(
    "10")
        ribbon.SetContent(p.HTML)
        
    'ribbon.onright = True
        page.Cell(3,1).AddComponent(ribbon.ABMComp)

    Dim rbn2 As MashRibbon
       rbn2.Initialize(
    page,"rbn2","Anelicious","whitered")
       rbn2.setsizes(
    6,6,6)
       rbn2.ArrayName = 
    "ribbon"
       
    Dim p As HTMLElement
       p = p.CreateP(
    "").AddContent("A right aligned Ribbon Enyoy!")
       p.SetPadding(
    "10")
       p.setmargin(
    "10")
       rbn2.SetContent(p.HTML)
       rbn2.onright = 
    True
       
    'page.Cell(3,1).AddComponent(rbn2.ABMComp)
     
    Last edited: Dec 15, 2017
    inakigarm, amaxco and joulongleu like this.
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