Roo/bootstrap/Table/TableCell.js
authorEdward <edward@roojs.com>
Wed, 30 Apr 2014 10:53:29 +0000 (18:53 +0800)
committerEdward <edward@roojs.com>
Wed, 30 Apr 2014 10:53:29 +0000 (18:53 +0800)
Roo/bootstrap/Table/TableRow.js

Roo/bootstrap/Table/Table.js [deleted file]
Roo/bootstrap/Table/TableBody.js [deleted file]
Roo/bootstrap/Table/TableCell.js [deleted file]
Roo/bootstrap/Table/TableRow.js [deleted file]

diff --git a/Roo/bootstrap/Table/Table.js b/Roo/bootstrap/Table/Table.js
deleted file mode 100644 (file)
index cfd7d48..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * - LGPL
- *
- * table
- * 
- */
-
-/**
- * @class Roo.bootstrap.Table.Table
- * @extends Roo.bootstrap.Component
- * Bootstrap Table class
- * @cfg {String} cls table class
- * @cfg {String} align (left|center|right) Specifies the alignment of a table according to surrounding text
- * @cfg {String} bgcolor Specifies the background color for a table
- * @cfg {Number} border Specifies whether the table cells should have borders or not
- * @cfg {Number} cellpadding Specifies the space between the cell wall and the cell content
- * @cfg {Number} cellspacing Specifies the space between cells
- * @cfg {String} frame Specifies which parts of the outside borders that should be visible
- * @cfg {String} rules Specifies which parts of the inside borders that should be visible
- * @cfg {String} sortable Specifies that the table should be sortable
- * @cfg {String} summary Specifies a summary of the content of a table
- * @cfg {Number} width Specifies the width of a table
- * 
- * @cfg {boolean} striped Should the rows be alternative striped
- * @cfg {boolean} bordered Add borders to the table
- * @cfg {boolean} hover Add hover highlighting
- * @cfg {boolean} condensed Format condensed
- * @cfg {boolean} responsive Format condensed
- *
- * 
- * @constructor
- * Create a new Table
- * @param {Object} config The config object
- */
-
-Roo.bootstrap.Table.Table = function(config){
-    Roo.bootstrap.Table.Table.superclass.constructor.call(this, config);
-    
-    if (this.sm) {
-        this.selModel = Roo.factory(this.sm, Roo.bootstrap.Table);
-        this.sm = this.selModel;
-        this.sm.xmodule = this.xmodule || false;
-    }
-    if (this.cm && typeof(this.cm.config) == 'undefined') {
-        this.colModel = new Roo.bootstrap.Table.ColumnModel(this.cm);
-        this.cm = this.colModel;
-        this.cm.xmodule = this.xmodule || false;
-    }
-    if (this.store) {
-        this.store= Roo.factory(this.store, Roo.data);
-        this.ds = this.store;
-        this.ds.xmodule = this.xmodule || false;
-         
-    }
-};
-
-Roo.extend(Roo.bootstrap.Table.Table, Roo.bootstrap.Component,  {
-    
-    cls: false,
-    align: false,
-    bgcolor: false,
-    border: false,
-    cellpadding: false,
-    cellspacing: false,
-    frame: false,
-    rules: false,
-    sortable: false,
-    summary: false,
-    width: false,
-    striped : false,
-    bordered: false,
-    hover:  false,
-    condensed : false,
-    responsive : false,
-    
-    getAutoCreate : function(){
-        var cfg = Roo.apply({}, Roo.bootstrap.Table.Table.superclass.getAutoCreate.call(this));
-        
-        cfg = {
-            tag: 'table',
-            cls : 'table'
-        }
-            
-        if (this.striped) {
-            cfg.cls += ' table-striped';
-        }
-        if (this.hover) {
-            cfg.cls += ' table-hover';
-        }
-        if (this.bordered) {
-            cfg.cls += ' table-bordered';
-        }
-        if (this.condensed) {
-            cfg.cls += ' table-condensed';
-        }
-        if (this.responsive) {
-            cfg.cls += ' table-responsive';
-        }
-        
-          
-        
-        
-        if (this.cls) {
-            cfg.cls+=  ' ' +this.cls;
-        }
-        
-        // this lot should be simplifed...
-        
-        if (this.align) {
-            cfg.align=this.align;
-        }
-        if (this.bgcolor) {
-            cfg.bgcolor=this.bgcolor;
-        }
-        if (this.border) {
-            cfg.border=this.border;
-        }
-        if (this.cellpadding) {
-            cfg.cellpadding=this.cellpadding;
-        }
-        if (this.cellspacing) {
-            cfg.cellspacing=this.cellspacing;
-        }
-        if (this.frame) {
-            cfg.frame=this.frame;
-        }
-        if (this.rules) {
-            cfg.rules=this.rules;
-        }
-        if (this.sortable) {
-            cfg.sortable=this.sortable;
-        }
-        if (this.summary) {
-            cfg.summary=this.summary;
-        }
-        if (this.width) {
-            cfg.width=this.width;
-        }
-        
-        
-       
-        return cfg;
-    }
-   
-});
-
-
\ No newline at end of file
diff --git a/Roo/bootstrap/Table/TableBody.js b/Roo/bootstrap/Table/TableBody.js
deleted file mode 100644 (file)
index f364719..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * - LGPL
- *
- * table body
- * 
- */
-
-/**
- * @class Roo.bootstrap.Table.TableBody
- * @extends Roo.bootstrap.Component
- * Bootstrap TableBody class
- * @cfg {String} cls element class
- * @cfg {String} tag element tag (thead|tbody|tfoot) default tbody
- * @cfg {String} align Aligns the content inside the element
- * @cfg {Number} charoff Sets the number of characters the content inside the element will be aligned from the character specified by the char attribute
- * @cfg {String} valign Vertical aligns the content inside the <tbody> element
- * 
- * @constructor
- * Create a new TableBody
- * @param {Object} config The config object
- */
-
-Roo.bootstrap.Table.TableBody = function(config){
-    Roo.bootstrap.Table.TableBody.superclass.constructor.call(this, config);
-};
-
-Roo.extend(Roo.bootstrap.Table.TableBody, Roo.bootstrap.Component,  {
-    
-    cls: false,
-    tag: false,
-    align: false,
-    charoff: false,
-    valign: false,
-    
-    getAutoCreate : function(){
-        var cfg = Roo.apply({}, Roo.bootstrap.Table.TableBody.superclass.getAutoCreate.call(this));
-       
-        cfg = {
-            tag: 'tbody'
-        }
-            
-        if (this.cls) {
-            cfg.cls=this.cls
-        }
-        if(this.tag){
-            cfg.tag = this.tag;
-        }
-       
-        if(this.align){
-            cfg.align = this.align;
-        }
-        if(this.charoff){
-            cfg.charoff = this.charoff;
-        }
-        if(this.valign){
-            cfg.valign = this.valign;
-        }
-        
-        return cfg;
-    }
-    
-    
-//    initEvents : function()
-//    {
-//        
-//        if(!this.store){
-//            return;
-//        }
-//        
-//        this.store = Roo.factory(this.store, Roo.data);
-//        this.store.on('load', this.onLoad, this);
-//        
-//        this.store.load();
-//        
-//    },
-//    
-//    onLoad: function () 
-//    {   
-//        this.fireEvent('load', this);
-//    }
-//    
-//   
-});
-
-
\ No newline at end of file
diff --git a/Roo/bootstrap/Table/TableCell.js b/Roo/bootstrap/Table/TableCell.js
deleted file mode 100644 (file)
index 46198a5..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * - LGPL
- *
- * table cell
- * 
- */
-/**
- * @class Roo.bootstrap.Table.TableCell
- * @extends Roo.bootstrap.Component
- * Bootstrap TableCell class
- * @cfg {String} html cell contain text
- * @cfg {String} cls cell class
- * @cfg {String} tag cell tag (td|th) default td
- * @cfg {String} abbr Specifies an abbreviated version of the content in a cell
- * @cfg {String} align Aligns the content in a cell
- * @cfg {String} axis Categorizes cells
- * @cfg {String} bgcolor Specifies the background color of a cell
- * @cfg {Number} charoff Sets the number of characters the content will be aligned from the character specified by the char attribute
- * @cfg {Number} colspan Specifies the number of columns a cell should span
- * @cfg {String} headers Specifies one or more header cells a cell is related to
- * @cfg {Number} height Sets the height of a cell
- * @cfg {String} nowrap Specifies that the content inside a cell should not wrap
- * @cfg {Number} rowspan Sets the number of rows a cell should span
- * @cfg {String} scope Defines a way to associate header cells and data cells in a table
- * @cfg {String} valign Vertical aligns the content in a cell
- * @cfg {Number} width Specifies the width of a cell
- * 
- * @constructor
- * Create a new TableCell
- * @param {Object} config The config object
- */
-
-Roo.bootstrap.Table.TableCell = function(config){
-    Roo.bootstrap.Table.TableCell.superclass.constructor.call(this, config);
-};
-
-Roo.extend(Roo.bootstrap.Table.TableCell, Roo.bootstrap.Component,  {
-    
-    html: false,
-    cls: false,
-    tag: false,
-    abbr: false,
-    align: false,
-    axis: false,
-    bgcolor: false,
-    charoff: false,
-    colspan: false,
-    headers: false,
-    height: false,
-    nowrap: false,
-    rowspan: false,
-    scope: false,
-    valign: false,
-    width: false,
-    
-    
-    getAutoCreate : function(){
-        var cfg = Roo.apply({}, Roo.bootstrap.Table.TableCell.superclass.getAutoCreate.call(this));
-       
-       cfg = {
-           tag: 'td'
-       }
-        
-        if(this.tag){
-            cfg.tag = this.tag;
-        }
-        
-        if (this.html) {
-            cfg.html=this.html
-        }
-        if (this.cls) {
-            cfg.cls=this.cls
-        }
-        if (this.abbr) {
-            cfg.abbr=this.abbr
-        }
-        if (this.align) {
-            cfg.align=this.align
-        }
-        if (this.axis) {
-            cfg.axis=this.axis
-        }
-        if (this.bgcolor) {
-            cfg.bgcolor=this.bgcolor
-        }
-        if (this.charoff) {
-            cfg.charoff=this.charoff
-        }
-        if (this.colspan) {
-            cfg.colspan=this.colspan
-        }
-        if (this.headers) {
-            cfg.headers=this.headers
-        }
-        if (this.height) {
-            cfg.height=this.height
-        }
-        if (this.nowrap) {
-            cfg.nowrap=this.nowrap
-        }
-        if (this.rowspan) {
-            cfg.rowspan=this.rowspan
-        }
-        if (this.scope) {
-            cfg.scope=this.scope
-        }
-        if (this.valign) {
-            cfg.valign=this.valign
-        }
-        if (this.width) {
-            cfg.width=this.width
-        }
-        
-       
-        return cfg;
-    }
-   
-});
-
-
\ No newline at end of file
diff --git a/Roo/bootstrap/Table/TableRow.js b/Roo/bootstrap/Table/TableRow.js
deleted file mode 100644 (file)
index 42b295a..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * - LGPL
- *
- * table row
- * 
- */
-
-/**
- * @class Roo.bootstrap.Table.TableRow
- * @extends Roo.bootstrap.Component
- * Bootstrap TableRow class
- * @cfg {String} cls row class
- * @cfg {String} align Aligns the content in a table row
- * @cfg {String} bgcolor Specifies a background color for a table row
- * @cfg {Number} charoff Sets the number of characters the content will be aligned from the character specified by the char attribute
- * @cfg {String} valign Vertical aligns the content in a table row
- * 
- * @constructor
- * Create a new TableRow
- * @param {Object} config The config object
- */
-
-Roo.bootstrap.Table.TableRow = function(config){
-    Roo.bootstrap.TTable.ableRow.superclass.constructor.call(this, config);
-};
-
-Roo.extend(Roo.bootstrap.Table.TableRow, Roo.bootstrap.Component,  {
-    
-    cls: false,
-    align: false,
-    bgcolor: false,
-    charoff: false,
-    valign: false,
-    
-    getAutoCreate : function(){
-        var cfg = Roo.apply({}, Roo.bootstrap.Table.TableRow.superclass.getAutoCreate.call(this));
-       
-        cfg = {
-            tag: 'tr'
-        }
-            
-        if(this.cls){
-            cfg.cls = this.cls;
-        }
-        if(this.align){
-            cfg.align = this.align;
-        }
-        if(this.bgcolor){
-            cfg.bgcolor = this.bgcolor;
-        }
-        if(this.charoff){
-            cfg.charoff = this.charoff;
-        }
-        if(this.valign){
-            cfg.valign = this.valign;
-        }
-       
-        return cfg;
-    }
-   
-});
-
-
\ No newline at end of file