Search
DiagramLayout Members
Constructors Properties Methods
 


Represents a diagram-based layout for dashboard widgets.

The following tables list the members exposed by the DiagramLayout type.

 Public Constructors

  Name Description

DiagramLayout

Initializes a new instance of the DiagramLayout class.

 Public Properties

  Name Description

activeContainer

Gets the currently active diagram node container.

 Public Methods

  Name Description

acceptWidget

Accepts a widget dropped into the diagram area.

clearContainers

Clears all diagram nodes and container references.

createContainer

Creates a container for a widget at the specified diagram bounds.

draw

Creates the diagram host element.

drawContainers

Renders every widget as a diagram node.

ensureContainers

Ensures each widget has a diagram container.

fromJson

Deserializes diagram container data from a JSON object.

getWidgetContainer

Returns the widget's container. (Inherited from LayoutBase.)

getWidgetContainerElement

Returns the widget's container DOM element. (Inherited from LayoutBase.)

getWidgetElement

Returns the widget's DOM element.

getWidgetElement

Returns the widget's DOM element. (Inherited from LayoutBase.)

init

Initializes the diagram layout and rebuilds the widget containers.

onNodeClicked

Handles node click events.

onNodeDomCreated

Handles DOM creation for a diagram node.

onNodeModified

Handles node modification events.

removeWidget

Removes a widget from the diagram layout.

serializeContainers

Serializes the diagram containers into an array of JSON objects.

setAutoResize

Enables or disables automatic resizing for the diagram.

setMode

Sets the behavior mode for the diagram view.

toJson

Serializes the diagram layout to a JSON-compatible object.

 See Also