Container

Overview

A generic standard container for other components, this component allows you to group elements together in a single nested view. Most components within Tint's framework inherit (or use) the functionality of this component as a starting point. This component is useful when a set of components rely on one another to accomplish a common behavior. For example, a file selection may have both a text input and a button associated with it, combining the two into a new control using the container is a good way of reusing controls.

Methods

appendChild(control)
Description

Append child adds the passed in control as a child to this control.

Definition

container.appendChild(control)
Parameters
NameTypeDescription
control Control A control to add as a child to this control.
appendChild(controls)
Description

Append child adds the passed in array (or several) controls as a children to this control.

Definition

container.appendChild(controls)
Parameters
NameTypeDescription
controls Array An array of controls that you'd like to add as children to this control.
removeChild(control)
Description

Remove child removes the passed in control from the list of children controls it has.

Definition

container.removeChild(control)
Parameters
NameTypeDescription
control Control The control to remove from this control.