Skip to content

WorkspaceParent.replaceChild method

WorkspaceParent › replaceChild

Unofficial

Replaces the child at the given index.

Signature:

replaceChild(index: number, child: WorkspaceItem): void

Parameters:

ParameterTypeDescription
indexnumberThe index to replace at.
childWorkspaceItemThe replacement child.

Returns: void