Digital Clock
The Digital Clock component is a simple digital clock that updates
every minute, displaying in twelve- or 24-hour time. By using images it
appears embedded in the page, unlike other JavaScript clocks, which
require the use of a text box.
Properties
name
- Description: (REQUIRED) Enter unique name of the control. Must exactly match the name of the corresponding JavaScript object on the page.
- Type: String
- Default Value: DigitalClock1
is12hours
- Description: Set clock to 12 hour mode (with am/pm) or 24 hour mode (military time).
- Type: String
- Value Set: 12 Hour | 24 Hour
testMode
- Description: Select the test mode.
- Value Set: off | alerts | text
- Type: String
- Default Value: off
- Is Expert: Yes
Methods
Render
- Name: render()
- Description: Renders the clock in HTML on the page.
Clock Start
- Name: start(refresh)
- Description: Activates the clock timer.
- Parameter: Refresh?
- Name: refresh
- Description: Set to true to refresh clock digits and start timer, false to simply restart the timer.
- Type: Boolean
Clock Stop
- Name: stop()
- Description: Deactivates the clock.
Events
On Error
- Name: onError()
- Description: Event fires on failure to load a clock image.
On Abort
- Name: onAbort()
- Description: Event fires on user aborted loading of a clock image.
On Load
- Name: onLoad()
- Description: Event fires on successful load of a clock image.
On Render
- Name: onRender()
- Description: Event fires on render of the clock.
On Clock Start
- Name: onStart()
- Description: Event fires on clock start.
On Clock Stop
- Name: onStop()
- Description: Event fires on clock stop.
On Rotate Digit Image
- Name: onRotateImage()
- Description: Event fires when one or more clock digits are updated.
Other Information
Environment: Client