So it seems I need something like this for my project...
Add this to the BuildPage method..
Add this to Class Globals of your page..
In ConnectPage, create the component..
Wala!!!
Add this to the BuildPage method..
B4X:
page.AddExtraJavaScriptFile("custom/clock.js")
page.AddExtraCSSFile("custom/clock.css")
Add this to Class Globals of your page..
B4X:
Public clock As MashClock
In ConnectPage, create the component..
B4X:
clock.Initialize(page,"userClock")
page.Cell(2,2).AddComponent(clock.ABMComp)
Wala!!!