mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
45 lines
858 B
JavaScript
45 lines
858 B
JavaScript
/**
|
|
* eGroupWare eTemplate2 - JS Box object
|
|
*
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
* @package etemplate
|
|
* @subpackage api
|
|
* @link http://www.egroupware.org
|
|
* @author Andreas Stöckel
|
|
* @copyright Stylite 2011
|
|
* @version $Id$
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
/*egw:uses
|
|
jquery.jquery;
|
|
et2_baseWidget;
|
|
*/
|
|
|
|
/**
|
|
* Class which implements the hbox and vbox tag
|
|
*/
|
|
var et2_box = et2_baseWidget.extend({
|
|
|
|
init: function(_parent, _type) {
|
|
this._super.apply(this, arguments);
|
|
|
|
this.div = $j(document.createElement("div"))
|
|
.addClass("et2_" + _type);
|
|
|
|
this.setDOMNode(this.div[0]);
|
|
},
|
|
|
|
set_id: function(_value) {
|
|
this._super.apply(this, arguments);
|
|
|
|
// Check whether a namespace exists for this element
|
|
this.checkCreateNamespace();
|
|
}
|
|
|
|
});
|
|
|
|
et2_register_widget(et2_box, ["hbox", "vbox", "box"]);
|
|
|