zindex : 100, // Display in front of other items
modal: true, // This dialogue should be modal.
shim : true,
- closeButtonTitle : this.get('closeButtonTitle')
+ closeButtonTitle : this.get('closeButtonTitle'),
+ render : false
};
// Override with additional options
initializer : function(config) {
var bb;
- this.render();
+ if (this.get('render')) {
+ this.render();
+ }
this.makeResponsive();
this.after('visibleChange', this.visibilityChanged, this);
if (config.center) {
}
return false;
}
+ },
+
+ /**
+ * Boolean determining whether to render the widget during initialisation.
+ *
+ * We override this to change the default from false to true for the dialogue.
+ * We then proceed to early render the dialogue during our initialisation rather than waiting
+ * for YUI to render it after that.
+ *
+ * @attribute render
+ * @type Boolean
+ * @default true
+ */
+ render : {
+ value : true,
+ writeOnce : true
}
});