src/aria/widgets/container/Dialog.js
function (cfg) {
            // Note also some related operations are done beforehand, in _registerBindings
            if (!("macro" in cfg) && !("bind" in cfg && "macro" in cfg.bind)) {
                this.$logError(this.MISSING_CONTENT_MACRO);
            }
            var appEnvDialogSettings = aria.widgets.environment.WidgetSettings.getWidgetSettings().dialog;
            if (!("movable" in cfg)) {
                cfg.movable = appEnvDialogSettings.movable;
            }
            if (!("movableProxy" in cfg)) {
                cfg.movableProxy = appEnvDialogSettings.movableProxy;
            }
            if (cfg.autoFocus == null) {
                cfg.autoFocus = cfg.modal;
            }
            if (cfg.focusableTitle == null) {
                cfg.focusableTitle = cfg.waiAria;
            }
            if (cfg.focusableClose == null) {
                cfg.focusableClose = !!(cfg.waiAria && cfg.closeLabel);
            }
            if (cfg.focusableMaximize == null) {
                cfg.focusableMaximize = !!(cfg.waiAria && cfg.maximizeLabel);
            }
            if (cfg.titleTag == null) {
                cfg.titleTag = cfg.waiAria ? "h1" : "span";
            }
        }
function (cfg) {
            // Note also some related operations are done beforehand, in _registerBindings
            if (!("macro" in cfg) && !("bind" in cfg && "macro" in cfg.bind)) {
                this.$logError(this.MISSING_CONTENT_MACRO);
            }
            var appEnvDialogSettings = aria.widgets.environment.WidgetSettings.getWidgetSettings().dialog;
            if (!("movable" in cfg)) {
                cfg.movable = appEnvDialogSettings.movable;
            }
            if (!("movableProxy" in cfg)) {
                cfg.movableProxy = appEnvDialogSettings.movableProxy;
            }
            if (cfg.autoFocus == null) {
                cfg.autoFocus = cfg.modal;
            }
            if (cfg.focusableTitle == null) {
                cfg.focusableTitle = cfg.waiAria;
            }
            if (cfg.focusableClose == null) {
                cfg.focusableClose = !!(cfg.waiAria && cfg.closeLabel);
            }
            if (cfg.focusableMaximize == null) {
                cfg.focusableMaximize = !!(cfg.waiAria && cfg.maximizeLabel);
            }
            if (cfg.titleTag == null) {
                cfg.titleTag = cfg.waiAria ? "h1" : "span";
            }
        }
function ( cfg ) { // Note also some related operations are done beforehand, in _registerBindings if ( ! ( "macro" in cfg ) && ! ( "bind" in cfg && "macro" in cfg . bind ) ) { this . $logError ( this . MISSING_CONTENT_MACRO ) ; } var appEnvDialogSettings = aria . widgets . environment . WidgetSettings . getWidgetSettings ( ) . dialog ; if ( ! ( "movable" in cfg ) ) { cfg . movable = appEnvDialogSettings . movable ; } if ( ! ( "movableProxy" in cfg ) ) { cfg . movableProxy = appEnvDialogSettings . movableProxy ; } if ( cfg . autoFocus == null ) { cfg . autoFocus = cfg . modal ; } if ( cfg . focusableTitle == null ) { cfg . focusableTitle = cfg . waiAria ; } if ( cfg . focusableClose == null ) { cfg . focusableClose = ! ! ( cfg . waiAria && cfg . closeLabel ) ; } if ( cfg . focusableMaximize == null ) { cfg . focusableMaximize = ! ! ( cfg . waiAria && cfg . maximizeLabel ) ; } if ( cfg . titleTag == null ) { cfg . titleTag = cfg . waiAria ? "h1" : "span" ; } }
Check that a content macro is specified or bound to the dataModel
@param {aria.widgets.CfgBeans:DialogCfg} cfg
@protected
Check that a content macro is specified or bound to the dataModel