public Sub ABMImageBuild(page As ABMPage,id As String,imgPath As String,opacity As Double,bResponsive As Boolean,bMaterialBoxed As Boolean,sCaption As String, sAlt As String, bCircular As Boolean, bClickable As Boolean,bFixed As String, sWidth As String, sHeight As String) As ABMImage
Dim img As ABMImage
img.Initialize(page, id, imgPath & "?" & DateTime.Now, opacity)
img.IsResponsive = bResponsive
img.IsMaterialBoxed = bMaterialBoxed
img.Caption = sCaption
img.Alt = sAlt
img.IsCircular = bCircular
img.IsClickable = bClickable
If bFixed = "1" Or bFixed = True Then
img.SetFixedSize(sWidth,sHeight)
End If
Return img
End Sub
Sub ABMTextImageRight(page As ABMPage, id As String, text As String, img As String,bFixed As Boolean,iWidth As String,iHeight As String) As ABMContainer
Dim ItemCont As ABMContainer
ItemCont.Initialize(page, id, "")
ItemCont.AddRowsM(1,False,0,0, "").AddCellsOSMP(1,0,0,0,10,10,10,0,0,0,10,"rightcontent").AddCellsOSMP(1,0,0,0,2,2,2,10,0,5,5,"centercontent")
ItemCont.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
Dim lbl As ABMLabel
lbl.Initialize(page, id & "lbl", text, ABM.SIZE_PARAGRAPH, False, "")
ItemCont.Cell(1,1).AddComponent(lbl)
Dim badge As ABMImage = ABMImageBuild(page,id & "img",img,1,False,False,"","",False,False,bFixed,iWidth,iHeight)
ItemCont.Cell(1,2).AddComponent(badge)
Return ItemCont
End Sub