Mixin for widgets that are children of a container widget
See the dijit/_Contained reference documentation for more information.
// make a basic custom widget that knows about its parents declare("my.customClass",[dijit._WidgetBase, dijit._Contained],{});
Returns next or previous sibling
Parameter | Type | Description |
---|---|---|
which | String | Either "next" or "previous" |
Returns the index of this widget within its container parent. It returns -1 if the parent does not exist, or if the parent is not a dijit/_Container
Returns null if this is the last child of the parent, otherwise returns the next element sibling to the "right".
Returns null if this is the first child of the parent, otherwise returns the next element sibling to the "left".