addChild

[ Function ]

public addChild(co: TcHmi.Controls.System.baseTcHmiControl, pos: number | null): void;

Adds a child control to this control. This only affects the purely logical relationship. The child control is not added in the DOM and is therefore not automatically visible.

Parameter

Name

Type

Description

co

TcHmi.Controls.System.baseTcHmiControl

Control to be added.

pos

number, null

Sets the new position within the child list. If this is null or negative, the new child is added to the end.

Return value

Type

Description

void

No return value.

See also

Origin: TcHmiContainerControl

addChild 1:

Available from 1.8