B4J Library [ABMaterial]: MashProgress

Mashiane

Expert
Licensed User
Hi there

The MashProgress component is a display component to show percentage complete.

This can be small or normal and also can be stacked.

Coming to MashPlugIns soon.

MashProgress.png


The code to add these is simple as...

B4X:
mashp.Initialize(page,"progress","whiteblue")
    mashp.Value = "5"
    mashp.Small = True
    'mashp.ShowToolTip = True
    page.Cell(3,1).AddComponent(mashp.ABMComp)
    
    Dim mashp1 As MashProgress
    mashp1.Initialize(page,"progress1","whitered")
    mashp1.Value = "50.5"
    'mashp1.ShowToolTip = True
    page.Cell(4,1).AddComponent(mashp1.ABMComp)
    
    Dim mashp2 As MashProgress
    mashp2.Initialize(page,"progress2","whiteorange")
    mashp2.Value = "30"
    'mashp2.ShowToolTip = True
    'mashp2.Overlay = True
    'mashp2.Striped = True
    page.Cell(5,1).AddComponent(mashp2.ABMComp)
    
    Dim pstacked As MashProgress
    pstacked.Initialize(page,"pstacked","")
    pstacked.AddProgress("35","danger")
    pstacked.AddProgress("20","warn")
    pstacked.AddProgress("10","success")
    page.Cell(6,1).AddComponent(pstacked.ABMComp)
 
Top