Composite
An empty widget that can contain other widgets. Includes Widget API
Methods
append(child, child*)
Parameters:
Returns: Widget
Adds the given widget(s) in the given order to the composite.
append(collection)
Parameters:
- collection: WidgetCollection
Returns: Widget
Adds all widgets in the given collection to the composite.
Events
“addchild” (widget, child, options)
Parameters:
Fired when a child is added to this widget.
“removechild” (widget, child, options)
Parameters:
- widget: Composite
- child: Widget, the widget that was removed.
- options: Object, contains the index of the removed child widget, e.g.
{index: number}
Fired when a child is removed from this widget.