All container widgets arrange other widgets, and so have a lot of common functionality defined in the dijit._Container
class. The following functions are provided for all Container widgets:
addChild:
Adds a child widget to the container.removeChild:
Removes a child widget from the container.destroyDescendants:
Iterates over all children, calling destroy on each.getChildren:
Returns an array containing references to all children.hasChildren:
Returns a boolean.
The LayoutContainer is a widget which lays out children widgets according to one of five alignments: right, left, top, bottom, or client. Client means "whatever is left", basically.
The widgets being organized need not be ContentPanes, but this is normally the case. Each widget then gets to set a layoutAlign
property, like this:
layoutAlign = "left".
The normal way to use LayoutContainer is to define it using markup in the page, and then define the widgets to be laid out inside it.
LayoutContainer...