B4J Library [ABMaterial] : MashClock - a custom clock component

So it seems I need something like this for my project...

Clock.gif


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!!!
 

Attachments

  • clock.zip
    896 bytes · Views: 392
  • MashClock.bas
    1.4 KB · Views: 426
Top