Search
ClockWidget Class
Remarks See Also
 






Represents a dashboard widget that displays an analog or digital clock or timer.

Namespace: MindFusion.Dashboards
File: ClockWidget.js

 Syntax

JavaScript  Copy Code

// class
ClockWidget.prototype = {}

 Remarks

ClockWidget displays a real-time analog or digital clock or countdown timer. It is typically positioned in executive header rows, command-center status cards, or shift-tracking panels.

The display style is controlled by the clockType property:

  • ClockType.Analog: Renders a traditional clock face with rotating hour, minute, and second needle hands.
  • ClockType.Digital: Renders a numeric digital clock display.

The widget can also function as an operational timer using the timerType property (TimerType.None, TimerType.Down for countdowns, or TimerType.Up for count-ups).

The timeZone property specifies an integer or floating-point offset in hours from UTC, allowing dashboards to display multi-region office times (e.g., London, New York, Tokyo) simultaneously.

You can also bind the clock to a specific timestamp in a DataSource using valuePath, or supply an explicit date or time string to the value property.

 Inheritance Hierarchy

MindFusion.Dashboards.DashboardWidget
    MindFusion.Dashboards.ClockWidget

 See Also