Panel.add

Object add (String type, Bounds bounds, String text, Object properties)

Parameters

type The type of the child element, as specified for the type property.
bounds A bounds specification that describes the size and position of the new control or container, relative to its parent.
text The text or label, a localizable string.
properties An object that contains one or more creation properties of the new child (properties used only when the element is created).

Description

Adds a child element to this container.

Creates and returns a new control or container object and adds it to the children of this group.