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