[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 /* global DIALOGUE_PREFIX */ 2 3 /** 4 * A dialogue type designed to display informative messages to users. 5 * 6 * @module moodle-core-notification 7 */ 8 9 /** 10 * Extends core Dialogue to provide a type of dialogue which can be used 11 * for informative message which are modal, and centered. 12 * 13 * @param {Object} config Object literal specifying the dialogue configuration properties. 14 * @constructor 15 * @class M.core.notification.info 16 * @extends M.core.dialogue 17 */ 18 var INFO = function() { 19 INFO.superclass.constructor.apply(this, arguments); 20 }; 21 22 Y.extend(INFO, M.core.dialogue, { 23 initializer: function() { 24 this.show(); 25 } 26 }, { 27 NAME: 'Moodle information dialogue', 28 CSS_PREFIX: DIALOGUE_PREFIX 29 }); 30 31 Y.Base.modifyAttrs(INFO, { 32 /** 33 * Whether the widget should be modal or not. 34 * 35 * We override this to change the default from false to true for a subset of dialogues. 36 * 37 * @attribute modal 38 * @type Boolean 39 * @default true 40 */ 41 modal: { 42 validator: Y.Lang.isBoolean, 43 value: true 44 } 45 }); 46 47 M.core.notification = M.core.notification || {}; 48 M.core.notification.info = INFO;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |