Search
GridLayout Members
Constructors Properties Methods
 


Represents a grid-like layout.

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

 Public Constructors

  Name Description

GridLayout

Initializes a new instance of the GridLayout class.

 Public Properties

  Name Description

activeContainer

Gets or sets the currently active widget container.

columnCount

Gets or sets the number of columns.

padding

Gets or sets the padding and gap between grid cells.

rowCount

Gets or sets the number of rows.

 Public Methods

  Name Description

acceptWidget

Accepts a dragged widget and returns its target cell coordinates.

clearContainers

Removes all widget container elements from the grid.

createContainer

Creates a widget container at the specified grid position.

createController

Creates an interaction controller for the current pointer state.

draw

Creates the grid DOM container for the layout.

drawContainers

Renders widget containers into the grid.

ensureContainers

Ensures every widget has a corresponding grid container.

getContainer

Gets the container at the specified grid coordinates.

getCursorHint

Gets the cursor hint for the specified point.

getNearestHandle

Gets the nearest resize handle index for a point relative to a rectangle.

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. (Inherited from LayoutBase.)

handleClick

Handles a click event on a widget.

hitTest

Returns the container that contains the specified point.

hitTestBorder

Finds a resize border adjacent to the specified point.

hitTestContainer

Finds the container located beneath the specified point.

hitTestWidget

Finds the widget located beneath the specified point.

init

Initializes the layout dimensions and rebuilds the grid structure.

removeWidget

Removes a widget from the grid layout.

setMode

Sets the current interaction mode for the layout.

toJson

Serializes the grid layout properties into a JSON-compatible object.

 See Also