/*************************************************************************** * module.dashboard.js * ------------------------ * Copyleft : (c) 2007 maborak.com * Version : 0.2 * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ /** * @class drag */ leimnud.Package.Public({ info :{ Class :"maborak", File :"module.dashboard.js", Name :"dashboard", Type :"module", Version :"0.1" }, content :function(){ this.elements = {}; this.make=function(options) { this.options = { drag:true, panel:[], data:[] }.concatMaborak(options || {}); this.drop = new this.parent.module.drop(); this.drop.make(); var width = this.options.target.offsetWidth-50; this.columns = this.options.data.length; this.widthColumn = (width/this.columns); this.elements.column=[]; this.elements.table = $dce('table'); $(this.elements.table).setStyle({ width:width, borderCollapse:'collapse' }) this.elements.tr = this.elements.table.insertRow(-1); this.options.target.append(this.elements.table); this.matriz = []; for(var i=0;i