Application Framework Reference

Module API

removeChild()

The removeChild() method removes the specified child module from the current module hierarchy. The childModule must exist and be a child of the caller.

Note: The removed child module is orphaned.

Synopsis

removeChild( childModule )

Parameters

args

Object

Splunk.Module object of the child to be removed.

Return Value

Undefined

Example

this.withEachChild( function(child) {
    this.removeChild(child);
    return false;
});