Represents a dashboard control.
The following tables list the members exposed by the DashboardCanvas type.
Public Constructors| Name | Description | |
|---|---|---|
![]() |
Initializes a new instance of the DashboardCanvas class. |
Public Properties| Name | Description | |
|---|---|---|
![]() |
Gets or sets the active layout manager instance. |
|
![]() |
Gets or sets the underlying Dashboard data model. |
|
![]() |
Gets or sets the layout algorithm used by the canvas. |
|
![]() |
Gets or sets the operational mode of the canvas (View or Edit). |
Public Methods| Name | Description | |
|---|---|---|
![]() |
Adds a widget to the dashboard at the specified grid position for GridLayout or with specified bounds for DiagramLayout. |
|
![]() |
Attaches the pointer input handlers used for interactive editing and drag operations. |
|
![]() |
Subscribes to dashboard lifecycle events. |
|
![]() |
Clears all widgets and resets the active layout state. |
|
![]() ![]() |
Creates and initializes a new DashboardCanvas from the specified element. This method is static and can be called without creating an instance of the class. |
|
![]() |
Creates a controller for the active layout when the canvas is in edit mode. |
|
![]() |
Unsubscribes from dashboard lifecycle events. |
|
![]() |
Releases resources used by the dashboard canvas. |
|
![]() |
Renders the current layout and container structure into the DOM. |
|
![]() ![]() |
Returns the specified DashboardCanvas object. This member is static and can be invoked without creating an instance of the class. |
|
![]() |
Populates the dashboard canvas from a serialized JSON payload. |
|
![]() |
Invalidates the canvas and triggers a refresh. |
|
![]() |
Marks a widget as needing a refresh during the next render frame. |
|
![]() |
Handles the addition of a widget to the dashboard model. |
|
![]() |
Handles the removal of a widget from the dashboard model. |
|
![]() |
Refreshes the DOM representation of a single widget. |
|
![]() |
Refreshes all widgets that were invalidated. |
|
![]() |
Removes a widget from the dashboard and its layout container. |
|
![]() |
Requests a render on the next animation frame. |
|
![]() |
Serializes all cached layouts into a JSON-compatible array. |
|
![]() |
Saves the diagram to a JSON string. |
See Also