Search
DashboardCanvas.addWidget Method
See Also
 






Adds a widget to the dashboard at the specified grid position for GridLayout or with specified bounds for DiagramLayout.

Namespace: MindFusion.Dashboards
File: DashboardCanvas.js

 Syntax

JavaScript  Copy Code

function addWidget (widget, [column, [row, [columnSpan, [rowSpan]]]])

 Parameters

widget

Object. The widget to add.

column
Optional.

number | Rect. The column index for GridLayout or the bounds of the widget for DiagramLayout.

row
Optional.

number. The row index.

columnSpan
Optional.

number. The number of columns to span.

rowSpan
Optional.

number. The number of rows to span.

 Return Value

boolean. True if the widget was added successfully; otherwise, false.

 See Also