Search
DashboardPalette Class
Remarks See Also
 






Represents a widget palette for a dashboardView control.

Namespace: MindFusion.Dashboards
File: DashboardPalette.js

 Syntax

JavaScript  Copy Code

// class
DashboardPalette.prototype = {}

 Remarks

DashboardPalette is an interactive accordion sidebar component used in DashboardMode.Edit. It organizes available widget templates into collapsible category panels (e.g., "Metrics", "Charts", "Gauges", "Tables") and allows users to drag widgets onto empty dashboard grid cells.

The palette connects to a WidgetRegistry through its registry property. Whenever a new widget template is registered with the registry, the palette automatically updates its UI and displays the template's icon and display name.

When a user drags a widget icon over the dashboard canvas, the palette highlights candidate grid cells. Releasing the mouse fires the widgetDrop event, instantiating the widget and placing it in a new DashboardWidgetContainer at the target cell coordinates.

 Inheritance Hierarchy

MindFusion.Dashboards.Accordion
    MindFusion.Dashboards.DashboardPalette

 See Also