Sub BuildInputSheet() As ABMModalSheet
Dim inp As ABMModalSheet
inp.Initialize(page, "inp", False, False,"")
inp.IsDismissible = False
inp.Content.AddRowsM(5, True,0,0, "").AddCells12(1, "")
inp.Content.BuildGrid
' add paragraph
inp.Content.CellR(0,1).AddComponent(ABMShared.BuildParagraphBQWithZDepth(page,"par1x1","Enter the information for this user.") )
Dim combo1 As ABMCombo
combo1.Initialize(page, "combo1", "User Type", 650 , "lightblue")
' add items
combo1.AddItem("combo1S1", "Admin", BuildSimpleItem("S1", "mdi-action-account-circle", "{NBSP}{NBSP}Admin"))
combo1.AddItem("combo1S2", "User", BuildSimpleItem("S2", "mdi-action-account-circle", "{NBSP}{NBSP}User"))
combo1.AddItem("combo1S0", "Guest", BuildSimpleItem("S3", "mdi-action-dashboard", "{NBSP}{NBSP}Guest"))
inp.Content.CellR(1,1).AddComponent(combo1)
Dim inpName As ABMInput
inpName.Initialize(page, "inpName", ABM.INPUT_TEXT, "Name", False, "lightblue")
inp.Content.CellR(1,1).AddComponent(inpName)
'>Modificata --inserted--------------------------------------------------------------
Dim qta As ABMInput
qta.Initialize(page, "qta", ABM.INPUT_TEXT, "Quantità", False, "lightblue")
qta.IconName = "mdi-action-add-shopping-cart"
inp.Content.CellR(1,1).AddComponent(qta)
Dim PBtn As ABMButton
'p.Size=5
PBtn.InitializeFloating (page, "PBtn", "mdi-content-add","positive")
inp.Content.CellR( 1,1).AddComponent(PBtn)
'---------------------------------------------------------------------------
inp.Footer.AddRowsM(1,True,0,0, "").AddCells12(1,"")
inp.Footer.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
' create the buttons for the footer, create in opposite order as aligned right in a footer
Dim CancelBtn As ABMButton
CancelBtn.InitializeFlat(page, "CancelBtn", "", "", "CANCEL", "transparent")
inp.Footer.Cell(1,1).AddComponent(CancelBtn)
Dim SaveBtn As ABMButton
SaveBtn.InitializeFlat(page, "SaveBtn", "", "", "SAVE", "transparent")
inp.Footer.Cell(1,1).AddComponent(SaveBtn)
Return inp
End Sub