Sub BANano_Ready()
' Initialize your local browser database
' SQL.OpenWait("SQL", "MyDB")
' SQL.ExecuteWait("CREATE TABLE IF NOT EXISTS tTable (tblid INT, tblcode STRING, tbldesc STRING)", Null)
' get the body tag
Private body As BANanoElement
body.Initialize("#body")
' append and load our main layout
body.Append($"<div id="mainHolder"></div>"$).Get("#mainHolder").LoadLayout("MainLayout")
' append and load a modal sheet
body.Append($"<div id="modalHolder"></div>"$).Get("#modalHolder").LoadLayout("WelcomeModalLayout")
' loading our menu in our sidebar
MainSidebar.Element.LoadLayout("MenuLayout")
' making the menu layout responsive: always open when screen size is bigger than 992px
Bigger992px.Initialize("(min-width: 992px)")
Smaller992px.Initialize("(max-width: 991px)")
' add our menu items
MenuList.AddMenuItem("", "page1", "fas fa-user", "{NBSP}{NBSP}Welcome page")
MenuList.Start
' load our first page
MainPageHolder.Element.LoadLayout("WelcomePageLayout")
Dim btn As SKButton
btn.Initialize(Me, "btn", "btn")
btn.Text = "Hello"
btn.Flavor = "button-danger"
btn.AddToParent("parentid")
End Sub