Construct a new grid layout.
The options for initializing the layout.
Get the number of columns in the layout.
The minimum column count is 1
.
Set the number of columns in the layout.
The minimum column count is 1
.
Get the column spacing for the layout.
Set the col spacing for the layout.
Get the fit policy for the layout.
The fit policy controls the computed size constraints which are applied to the parent widget by the layout.
Some layout implementations may ignore the fit policy.
Set the fit policy for the layout.
The fit policy controls the computed size constraints which are applied to the parent widget by the layout.
Some layout implementations may ignore the fit policy.
Changing the fit policy will clear the current size constraint for the parent widget and then re-fit the parent.
Test whether the layout is disposed.
Get the parent widget of the layout.
This is set automatically when installing the layout on the parent widget. The parent widget should not be set directly by user code.
Set the parent widget of the layout.
This is set automatically when installing the layout on the parent widget. The parent widget should not be set directly by user code.
Get the number of rows in the layout.
The minimum row count is 1
.
Set the number of rows in the layout.
The minimum row count is 1
.
Get the row spacing for the layout.
Set the row spacing for the layout.
Fit the layout to the total size required by the widgets.
Update the layout position and size of the widgets.
The parent offset dimensions should be -1
if unknown.
Add a widget to the grid layout.
The widget to add to the layout.
If the widget is already contained in the layout, this is no-op.
Attach a widget to the parent's DOM node.
The widget to attach to the parent.
Get the stretch factor for a specific column.
The column index of interest.
The stretch factor for the column.
This returns -1
if the index is out of range.
Detach a widget from the parent's DOM node.
The widget to detach from the parent.
Dispose of the resources held by the layout.
Perform layout initialization which requires the parent widget.
Create an iterator over the widgets in the layout.
A new iterator over the widgets in the layout.
A message handler invoked on an 'after-attach'
message.
The default implementation of this method forwards the message to all widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
A message handler invoked on an 'after-detach'
message.
The default implementation of this method forwards the message to all widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
A message handler invoked on an 'after-hide'
message.
The default implementation of this method forwards the message to all non-hidden widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
A message handler invoked on an 'after-show'
message.
The default implementation of this method forwards the message to all non-hidden widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
A message handler invoked on a 'before-attach'
message.
A message handler invoked on a 'before-detach'
message.
The default implementation of this method forwards the message to all widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
A message handler invoked on a 'before-hide'
message.
The default implementation of this method forwards the message to all non-hidden widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
A message handler invoked on a 'before-show'
message.
A message handler invoked on a 'child-hidden'
message.
A message handler invoked on a 'child-removed'
message.
This will remove the child widget from the layout.
Subclasses should not typically reimplement this method.
A message handler invoked on a 'child-shown'
message.
A message handler invoked on a 'fit-request'
message.
A message handler invoked on a 'resize'
message.
A message handler invoked on an 'update-request'
message.
Process a message sent to the parent widget.
The message sent to the parent widget.
This method is called by the parent widget to process a message.
Subclasses may reimplement this method as needed.
Remove a widget from the grid layout.
The widget to remove from the layout.
A widget is automatically removed from the layout when its parent
is set to null
. This method should only be invoked directly when
removing a widget from a layout which has yet to be installed on a
parent widget.
This method does not modify the widget's parent
.
Get the stretch factor for a specific row.
The row index of interest.
The stretch factor for the row.
This returns -1
if the index is out of range.
Set the stretch factor for a specific column.
The column index of interest.
The stretch factor for the column.
This is a no-op if the index is out of range.
Set the stretch factor for a specific row.
The row index of interest.
The stretch factor for the row.
This is a no-op if the index is out of range.
Get the cell config for the given widget.
The widget of interest.
The cell config for the widget.
Set the cell config for the given widget.
The widget of interest.
The value for the cell config.
Generated using TypeDoc
A layout which arranges its widgets in a grid. The namespace for the
GridLayout
class statics.