A type alias for a box layout alignment.
A type alias for a box layout direction.
Get the content alignment for the box layout.
This is the alignment of the widgets in the layout direction.
The alignment has no effect if the widgets can expand to fill the entire box layout.
Set the content alignment for the box layout.
This is the alignment of the widgets in the layout direction.
The alignment has no effect if the widgets can expand to fill the entire box 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 inter-element spacing for the box layout.
Set the inter-element spacing for the box layout.
A read-only array of the widgets in 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 end of the layout.
The widget to add to the layout.
If the widget is already contained in the layout, it will be moved.
Attach a widget to the parent's DOM node.
The current index of the widget in the layout.
The widget to attach to the parent.
This is a reimplementation of the superclass method.
Detach a widget from the parent's DOM node.
The previous index of the widget in the layout.
The widget to detach from the parent.
This is a reimplementation of the superclass method.
Dispose of the resources held by the layout.
Perform layout initialization which requires the parent widget.
Insert a widget into the layout at the specified index.
The index at which to insert the widget.
The widget to insert into the layout.
The index will be clamped to the bounds of the widgets.
If the widget is already added to the layout, it will be moved.
An index
which is non-integral.
Create an iterator over the widgets in the layout.
A new iterator over the widgets in the layout.
Move a widget in the parent's DOM node.
The previous index of the widget in the layout.
The current index of the widget in the layout.
The widget to move in the parent.
This is a reimplementation of the superclass method.
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 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
.
Remove the widget at a given index from the layout.
The index of the widget to remove.
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
.
An index
which is non-integral.
Get the box layout size basis for the given widget.
The widget of interest.
The box layout size basis for the widget.
Get the box layout stretch factor for the given widget.
The widget of interest.
The box layout stretch factor for the widget.
Set the box layout size basis for the given widget.
The widget of interest.
The value for the size basis.
Set the box layout stretch factor for the given widget.
The widget of interest.
The value for the stretch factor.
Generated using TypeDoc
A layout which arranges its widgets in a single row or column. The namespace for the
BoxLayout
class statics.