Newer
Older
* BrickAreas Control
* Edit and change the areas for the brick
* @author www.pcsg.de (Henning Leutz)
*
* @event onLoaded [ this ]
*/
'qui/QUI',
'qui/controls/Control',
'qui/controls/buttons/Button',
options: {
area : false,
title : false,
description: false
this.$Title = false;
this.$Desc = false;
this.$selected = false;
},
/**
* Return the HTML Node Element
*
* @return {HTMLElement}
*/
'class': 'quiqqer-bricks-area smooth',
html : '<div class="quiqqer-bricks-area-icon">' +
'<span class="fa fa-list-alt"></span>' +
'</div>' +
'<div class="quiqqer-bricks-area-content">' +
'<div class="quiqqer-bricks-area-content-title"></div>' +
'<div class="quiqqer-bricks-area-content-description"></div>' +
'</div>',
this.$Title = this.$Elm.getElement('.quiqqer-bricks-area-content-title');
this.$Desc = this.$Elm.getElement('.quiqqer-bricks-area-content-description');
if (this.getAttribute('area')) {
this.$Elm.set('data-area', this.getAttribute('area'));
if (this.getAttribute('title')) {
this.$Title.set('html', this.getAttribute('title'));
if (this.getAttribute('description')) {
this.$Desc.set('html', this.getAttribute('description'));
}
return this.$Elm;
},
/**
* toggle the select status
*/
this.unselect();
return;
}
this.select();
},
/**
* Select the area
*/