3.0 source code
This commit is contained in:
17
OfficeWeb/vendor/touch/src/table/Cell.js
vendored
Normal file
17
OfficeWeb/vendor/touch/src/table/Cell.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
Ext.define('Ext.table.Cell', {
|
||||
extend: 'Ext.Container',
|
||||
|
||||
xtype: 'tablecell',
|
||||
|
||||
config: {
|
||||
baseCls: 'x-table-cell'
|
||||
},
|
||||
|
||||
getElementConfig: function() {
|
||||
var config = this.callParent();
|
||||
|
||||
config.children.length = 0;
|
||||
|
||||
return config;
|
||||
}
|
||||
});
|
||||
10
OfficeWeb/vendor/touch/src/table/Row.js
vendored
Normal file
10
OfficeWeb/vendor/touch/src/table/Row.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
Ext.define('Ext.table.Row', {
|
||||
extend: 'Ext.table.Cell',
|
||||
|
||||
xtype: 'tablerow',
|
||||
|
||||
config: {
|
||||
baseCls: 'x-table-row',
|
||||
defaultType: 'tablecell'
|
||||
}
|
||||
});
|
||||
22
OfficeWeb/vendor/touch/src/table/Table.js
vendored
Normal file
22
OfficeWeb/vendor/touch/src/table/Table.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
Ext.define('Ext.table.Table', {
|
||||
extend: 'Ext.Container',
|
||||
|
||||
requires: ['Ext.table.Row'],
|
||||
|
||||
xtype: 'table',
|
||||
|
||||
config: {
|
||||
baseCls: 'x-table',
|
||||
defaultType: 'tablerow'
|
||||
},
|
||||
|
||||
cachedConfig: {
|
||||
fixedLayout: false
|
||||
},
|
||||
|
||||
fixedLayoutCls: 'x-table-fixed',
|
||||
|
||||
updateFixedLayout: function(fixedLayout) {
|
||||
this.innerElement[fixedLayout ? 'addCls' : 'removeCls'](this.fixedLayoutCls);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user