Canvas Toolkit
← Class index

CGridLayoutItem

Layouts · extends CLayoutItem

Layout item that stores a widget's position and span in a grid.

Module layouts/CGridLayoutItem.js. This class is available through the browser modules in the download.

Declared members

constructor(widget: CWidget, row: number, column: number, rowSpan?: number, columnSpan?: number);

Creates a grid-layout item. @param widget Widget represented by the item. @param row Zero-based grid row. @param column Zero-based grid column. @param rowSpan Number of rows occupied by the widget. @param columnSpan Number of columns occupied by the widget.

widget(): CWidget;

Returns the widget represented by this item.

row(): number;

Returns the zero-based row containing the item.

column(): number;

Returns the zero-based column containing the item.

rowSpan(): number;

Returns the number of rows occupied by the item.

columnSpan(): number;

Returns the number of columns occupied by the item.