Application Framework Reference

Module API

hideDescendants()

The hideDescendants() method hides the calling module and all descendant modules.

Note: This module is not intended to be overridden.

Synopsis

hideDescendants( invisibilityMode )

Parameters

invisibilityMode

String

Invisibility mode the current module should store.

Return Value

Undefined

Example

onContextChange: function($super) {
    $super();

    this._selection = null;
    this.hideDescendants(this.DRILLDOWN_VISIBILITY_KEY + "_" + this.moduleId);

    this.renderedCount = -1;

    var context = this.getContext();
    if (this.haveResultParamsChanged()) {
        var search  = context.get("search");
        if (search.job.isDone()  (search.job.getEventAvailableCount() > 0)) {
            this._pageComplete = false;  this.getResults();
        }  
    }  
    else if (context.has("results.dataOverlayMode")){
        this.onResultsRendered();
    }  
},
 

See Also

hide()
showDescendants()
show()