#IgnoreWarnings:12, 9
Sub Process_Globals
'this is the name of the page
Public name As String = "page1"
Public title As String = "page"
Public icon As String = "fa-solid fa-swatchbook"
Public color As String = "#000000"
'this variable holds reference to the app
'usually for constants and other things
Public app As SDUIApp
'the variable referencing banano lib
Private banano As BANano 'ignore
'this variable holds the page controller
Public page As SDUIPage 'ignore
Private Mode As String 'ignore
Private component1 As SDUIComponent 'ignore
Private component2 As SDUIComponent 'ignore
Private button1 As SDUIButton 'ignore
Private component3 As SDUIComponent 'ignore
Private icon1 As SDUIIcon 'ignore
Private textbox1 As SDUITextBox 'ignore
Private animatedview As SDUIComponent 'ignore
Private component4 As SDUIComponent 'ignore
Private accountitem As SDUIComponent 'ignore
Private component5 As SDUIComponent 'ignore
Private component6 As SDUIComponent 'ignore
Private itemamount As SDUIComponent 'ignore
Private itemdescription As SDUIComponent 'ignore
Private component7 As SDUIComponent 'ignore
Private component8 As SDUIComponent 'ignore
Private transview As SDUIComponent 'ignore
Private transheading As SDUIComponent 'ignore
Private tranheading As SDUIComponent 'ignore
Private lblseeall As SDUIComponent 'ignore
Private tranlist As SDUIComponent 'ignore
Private tranitem As SDUIComponent 'ignore
Private component9 As SDUIComponent 'ignore
Private icon2 As SDUIIcon 'ignore
Private lbltitletext As SDUIComponent 'ignore
Private lbltrantitle As SDUIComponent 'ignore
Private lbltrandate As SDUIComponent 'ignore
Private lbltranamount As SDUIComponent 'ignore
Private lblamount As SDUIComponent 'ignore
End Sub
'show the page
Sub Show(duiapp As SDUIApp) 'ignore
'get the reference to the app
app = duiapp
BANano.Await(BuildPage)
End Sub
'start building the page
Private Sub BuildPage
'initialize the page
page.Initialize(Me, "page", "page")
'clear the pageviewer
banano.Await(page.ClearPageView)
'set the page properties
page.Title = "page"
page.FullPage = true
page.Container = false
page.MxAuto = false
page.Flex = false
page.FlexWrap = false
page.BgColor = "base"
page.BgColorIntensity = "100"
page.Styles = "flex:1;padding-bottom:12px;padding-left:16px;padding-right:16px;padding-top:12px"
banano.Await(page.AddToParent(app.PageViewer, page.CustProps))
'
component1.Initialize(Me, "component1", "component1")
component1.ParentID = "page1"
component1.Styles = "align-items:center;display:flex;flex-direction:row;justify-content:space-between"
component1.AddToParent("page1", component1.CustProps)
'
'
component2.Initialize(Me, "component2", "component2")
component2.ParentID = "component1"
component2.Tag = "p"
component2.Text = "Home"
component2.Styles = "color:#083371;font-size:32px;font-weight:800"
component2.AddToParent("component1", component2.CustProps)
'
'
button1.Initialize(Me, "button1", "button1")
button1.ParentID = "component1"
button1.Caption = ""
button1.ButtonType = "button-icon"
button1.Shape = "circle"
button1.Variant = "ghost"
button1.TextColor = "#083371"
button1.IconName = "fa-solid fa-gear"
button1.AddToParent("component1", button1.CustProps)
'
'
component3.Initialize(Me, "component3", "component3")
component3.ParentID = "page1"
component3.Styles = "align-items:center;background-color:#f1f3f7;border-radius:8px;display:flex;flex-direction:row;margin-top:16px;padding:8px"
component3.AddToParent("page1", component3.CustProps)
'
'
icon1.Initialize(Me, "icon1", "icon1")
icon1.ParentID = "component3"
icon1.IconName = "fa-solid fa-magnifying-glass"
icon1.Size = ""
icon1.SizeOwn = "24px"
icon1.Flip = ""
icon1.AddToParent("component3", icon1.CustProps)
'
'
textbox1.Initialize(Me, "textbox1", "textbox1")
textbox1.ParentID = "component3"
textbox1.Caption = "textbox1"
textbox1.PlaceHolder = "Search"
textbox1.TextAlignment = "left"
textbox1.Bordered = False
textbox1.DpAltInput = False
textbox1.Styles = "color:#083371;font-size:16px;font-weight:400;height:2rem;margin-left:8px"
textbox1.AddToParent("component3", textbox1.CustProps)
'
'
animatedview.Initialize(Me, "animatedview", "animatedview")
animatedview.ParentID = "page1"
animatedview.AddToParent("page1", animatedview.CustProps)
'
'
component4.Initialize(Me, "component4", "component4")
component4.ParentID = "animatedview"
component4.Tag = "p"
component4.Text = "Accounts"
component4.Styles = "color:#083371;font-size:24px;font-weight:500;margin-top:16px"
component4.AddToParent("animatedview", component4.CustProps)
'
'
accountitem.Initialize(Me, "accountitem", "accountitem")
accountitem.ParentID = "animatedview"
accountitem.Styles = "background-color:#ffffff;border-radius:8px;display:flex;flex-direction:row;margin-top:8px;padding:8px"
accountitem.AddToParent("animatedview", accountitem.CustProps)
'
'
component5.Initialize(Me, "component5", "component5")
component5.ParentID = "accountitem"
component5.Styles = "background-color:#e74c3c;border-radius:24px;height:48px;width:48px"
component5.AddToParent("accountitem", component5.CustProps)
'
'
component6.Initialize(Me, "component6", "component6")
component6.ParentID = "accountitem"
component6.Styles = "display:flex;flex-direction:column;flex:1;justify-content:center;margin-left:16px"
component6.AddToParent("accountitem", component6.CustProps)
'
'
itemamount.Initialize(Me, "itemamount", "itemamount")
itemamount.ParentID = "component6"
itemamount.Tag = "p"
itemamount.Text = "$15,178.47"
itemamount.Styles = "color:#083371;font-size:16px;font-weight:500"
itemamount.AddToParent("component6", itemamount.CustProps)
'
'
itemdescription.Initialize(Me, "itemdescription", "itemdescription")
itemdescription.ParentID = "component6"
itemdescription.Tag = "p"
itemdescription.Text = "Salary Account **** 1485"
itemdescription.Styles = "color:#818892;font-size:16px;font-weight:400"
itemdescription.AddToParent("component6", itemdescription.CustProps)
'
'
component7.Initialize(Me, "component7", "component7")
component7.ParentID = "accountitem"
component7.Styles = "background-color:#f1f3f7;border-radius:8px;padding-left:8px;padding-right:8px;padding-top:4px;padding-bottom:4px;align-self:center"
component7.AddToParent("accountitem", component7.CustProps)
'
'
component8.Initialize(Me, "component8", "component8")
component8.ParentID = "component7"
component8.Tag = "p"
component8.Text = "View"
component8.Styles = "color:#083371;font-size:16px;font-weight:600"
component8.AddToParent("component7", component8.CustProps)
'
'
transview.Initialize(Me, "transview", "transview")
transview.ParentID = "page1"
transview.AddToParent("page1", transview.CustProps)
'
'
transheading.Initialize(Me, "transheading", "transheading")
transheading.ParentID = "transview"
transheading.Styles = "align-items:center;flex-direction:row;justify-content:space-between;margin-bottom:8px;display:flex;margin-top:16px"
transheading.AddToParent("transview", transheading.CustProps)
'
'
tranheading.Initialize(Me, "tranheading", "tranheading")
tranheading.ParentID = "transheading"
tranheading.Tag = "p"
tranheading.Text = "Transactions"
tranheading.Styles = "font-size:24px;font-weight:500;color:#083371"
tranheading.AddToParent("transheading", tranheading.CustProps)
'
'
lblseeall.Initialize(Me, "lblseeall", "lblseeall")
lblseeall.ParentID = "transheading"
lblseeall.Tag = "p"
lblseeall.Text = "See All"
lblseeall.Styles = "color:#083371;font-size:16px;font-weight:600"
lblseeall.AddToParent("transheading", lblseeall.CustProps)
'
'
tranlist.Initialize(Me, "tranlist", "tranlist")
tranlist.ParentID = "transview"
tranlist.AddToParent("transview", tranlist.CustProps)
'
'
tranitem.Initialize(Me, "tranitem", "tranitem")
tranitem.ParentID = "tranlist"
tranitem.BgColor = "base"
tranitem.BgColorIntensity = "200"
tranitem.Styles = "border-bottom-left-radius:8px;border-bottom-right-radius:8px;border-bottom-width:1px;border-color:#9a9ea4;border-top-left-radius:8px;border-top-right-radius:8px;color:#083371;display:flex;flex-direction:row;font-size:24px;font-weight:500;padding-bottom:16px;padding-left:8px;padding-right:8px;padding-top:16px"
tranitem.AddToParent("tranlist", tranitem.CustProps)
'
'
component9.Initialize(Me, "component9", "component9")
component9.ParentID = "tranitem"
component9.Styles = "align-items:center;background-color:#e74c3c33;border-radius:24px;display:flex;height:48px;justify-content:center;width:48px"
component9.AddToParent("tranitem", component9.CustProps)
'
'
icon2.Initialize(Me, "icon2", "icon2")
icon2.ParentID = "component9"
icon2.IconName = "fa-solid fa-wallet"
icon2.Color = "#e74c3c"
icon2.Size = ""
icon2.Flip = ""
icon2.AddToParent("component9", icon2.CustProps)
'
'
lbltitletext.Initialize(Me, "lbltitletext", "lbltitletext")
lbltitletext.ParentID = "tranitem"
lbltitletext.Styles = "display:flex;flex-direction:column;flex:1;justify-content:center;margin-left:16px"
lbltitletext.AddToParent("tranitem", lbltitletext.CustProps)
'
'
lbltrantitle.Initialize(Me, "lbltrantitle", "lbltrantitle")
lbltrantitle.ParentID = "lbltitletext"
lbltrantitle.Tag = "p"
lbltrantitle.Text = "Salary Payment"
lbltrantitle.Styles = "color:#083371;font-size:16px;font-weight:500"
lbltrantitle.AddToParent("lbltitletext", lbltrantitle.CustProps)
'
'
lbltrandate.Initialize(Me, "lbltrandate", "lbltrandate")
lbltrandate.ParentID = "lbltitletext"
lbltrandate.Tag = "p"
lbltrandate.Text = "25 May 2023, 6:15 PM"
lbltrandate.Styles = "color:#818892;font-size:16px;font-weight:400"
lbltrandate.AddToParent("lbltitletext", lbltrandate.CustProps)
'
'
lbltranamount.Initialize(Me, "lbltranamount", "lbltranamount")
lbltranamount.ParentID = "tranitem"
lbltranamount.Styles = "align-self:center;background-color:#e74c3c33;border-radius:8px;display:flex;padding-bottom:4px;padding-left:8px;padding-right:8px;padding-top:4px"
lbltranamount.AddToParent("tranitem", lbltranamount.CustProps)
'
'
lblamount.Initialize(Me, "lblamount", "lblamount")
lblamount.ParentID = "lbltranamount"
lblamount.Text = "$2000.00"
lblamount.Styles = "color:#e74c3c;font-size:16px;font-weight:600"
lblamount.AddToParent("lbltranamount", lblamount.CustProps)
'
End Sub
Sub getName As String 'ignore
Return name
End Sub
'
Sub getIcon As String 'ignore
Return icon
End Sub
'
Sub getTitle As String 'ignore
Return title
End Sub
'
Sub getColor As String 'ignore
Return color
End Sub