src/aria/templates/Section.js
function (visible, options) {
                visible = !!visible;
                var alreadyVisible = !!this._overlayId;

                if (visible !== alreadyVisible) {
                    if (visible) {
                        this._overlayId = ariaUtilsDomOverlay.create(this.getDom(), options);
                    } else {
                        this.disposeProcessingIndicator();
                    }

                    var processing = this._processing;
                    if (processing) {
                        // Update the value in the datamodel (someone else might be listening to it)
                        this.__skipProcessingChange = true;
                        this.__json.setValue(processing.inside, processing.to, visible);
                        this.__skipProcessingChange = false;
                    }
                } else if (visible) {
                    // refresh the overlay
                    ariaUtilsDomOverlay.overlays[this._overlayId].refresh();
                }
            }
function (visible, options) {
                visible = !!visible;
                var alreadyVisible = !!this._overlayId;

                if (visible !== alreadyVisible) {
                    if (visible) {
                        this._overlayId = ariaUtilsDomOverlay.create(this.getDom(), options);
                    } else {
                        this.disposeProcessingIndicator();
                    }

                    var processing = this._processing;
                    if (processing) {
                        // Update the value in the datamodel (someone else might be listening to it)
                        this.__skipProcessingChange = true;
                        this.__json.setValue(processing.inside, processing.to, visible);
                        this.__skipProcessingChange = false;
                    }
                } else if (visible) {
                    // refresh the overlay
                    ariaUtilsDomOverlay.overlays[this._overlayId].refresh();
                }
            }
function ( visible , options ) { visible = ! ! visible ; var alreadyVisible = ! ! this . _overlayId ; if ( visible !== alreadyVisible ) { if ( visible ) { this . _overlayId = ariaUtilsDomOverlay . create ( this . getDom ( ) , options ) ; } else { this . disposeProcessingIndicator ( ) ; } var processing = this . _processing ; if ( processing ) { // Update the value in the datamodel (someone else might be listening to it) this . __skipProcessingChange = true ; this . __json . setValue ( processing . inside , processing . to , visible ) ; this . __skipProcessingChange = false ; } } else if ( visible ) { // refresh the overlay ariaUtilsDomOverlay . overlays [ this . _overlayId ] . refresh ( ) ; } }
Set the state of the processing indicator. It updates the datamodel if the section has a processing
binding
@param {Boolean} visible True if the loading indicator should be visible
@param {Object|String} options The options (see aria.utils.DomOverlay.create / aria.utils.DomOverlay.detachFrom)
Set the state of the processing indicator . It updates the datamodel if the section has a processing binding