Application Framework Reference

Module API

getRootAncestor()

The getRootAncestor() method gets the root module in the module tree.

Synopsis

resp = getRootAncestor()

Return Value

Object

Splunk.Module object representing the module at the module tree root .

Example

getModulesInTree: function() {
    var root = this.getRootAncestor();
    return [root].concat(root.getDescendants());
},
 

See Also

getModulesInTree()
getAncestors()
getDescendants()