Search
CalendarWidget Class
Remarks See Also
 






Represents a dashboard widget that displays a MindFusion Scheduling Calendar.

Namespace: MindFusion.Dashboards
File: CalendarWidget.js

 Syntax

JavaScript  Copy Code

// class
CalendarWidget.prototype = {}

 Remarks

CalendarWidget embeds the MindFusion.Scheduling engine into a dashboard card, enabling live appointment scheduling, event calendars, project timetables, and resource assignment views.

The current presentation style is set through the calendar property's currentView (a member of CalendarView enumeration):

  • Month: Traditional full-month grid with multi-day appointment bars.
  • Week: Multi-day week schedule.
  • Timetable: Hour-by-hour vertical column timetable.
  • List: Chronological agenda list of upcoming items.
  • ResourceView: Horizontal resource timeline mapping appointments across staff, rooms, or equipment.

The underlying appointments and resources are stored in the schedule property (an instance of Schedule). The calendar widget can be bound to a JSON dataset via dataPath, automatically deserializing appointments and tasks. The expected JSON object should be result of Schedule.toJsonObject call.

The calendar repaints automatically when the theme property changes, adapting day headers, cell backgrounds, time tracks, and appointment colors to match the rest of the dashboard.

 Inheritance Hierarchy

MindFusion.Dashboards.DashboardWidget
    MindFusion.Dashboards.CalendarWidget

 See Also