dijit/_Container (version 1.10)

Summary

Mixin for widgets that contain HTML and/or a set of widget children.

See the dijit/_Container reference documentation for more information.

Method Summary

  • _getSiblingOfChild(child,dir) Get the next or previous widget sibling of child
  • addChild(widget,insertIndex) Makes the given widget a child of this widget.
  • buildRendering()
  • getIndexOfChild(child) Gets the index of the child in this container or -1 if not found
  • hasChildren() Returns true if widget has child widgets, i.e. if this.containerNode contains widgets.
  • removeChild(widget) Removes the passed widget instance from this widget but does not destroy it.

Methods

_getSiblingOfChild(child,dir)
Defined by dijit/_Container

Get the next or previous widget sibling of child

Parameter Type Description
child dijit/_WidgetBase
dir int

if 1, get the next sibling if -1, get the previous sibling

Returns:undefined
addChild(widget,insertIndex)
Defined by dijit/_Container

Makes the given widget a child of this widget.

Inserts specified child widget's dom node as a child of this widget's container node, and possibly does other processing (such as layout).

Parameter Type Description
widget dijit/_WidgetBase
insertIndex int
Optional
buildRendering()
Defined by dijit/_Container
getIndexOfChild(child)
Defined by dijit/_Container

Gets the index of the child in this container or -1 if not found

Parameter Type Description
child dijit/_WidgetBase
Returns:undefined
hasChildren()
Defined by dijit/_Container

Returns true if widget has child widgets, i.e. if this.containerNode contains widgets.

Returns:boolean
removeChild(widget)
Defined by dijit/_Container

Removes the passed widget instance from this widget but does not destroy it. You can also pass in an integer indicating the index within the container to remove (ie, removeChild(5) removes the sixth widget).

Parameter Type Description
widget Widget | int
Error in the documentation? Can’t find what you are looking for? Let us know!