5 * <!-- BEGIN TEMPLATE // -->
6 <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
8 <td align="center" valign="top">
13 * @class Roo.mailer.Column
14 * @extends Roo.bootstrap.Component
15 * Bootstrap Element class
16 * @cfg {String} cls class of the element
17 * @cfg {String} html content of body
18 * @cfg {String} src image url
19 * @cfg {String} column (left|right)
20 * @cfg {String width (100%|200|340|260)
23 * Create a new Element
24 * @param {Object} config The config object
27 Roo.mailer.Column = function(config){
28 Roo.mailer.Column.superclass.constructor.call(this, config);
31 Roo.extend(Roo.mailer.Column, Roo.bootstrap.Component, {
40 getAutoCreate : function(){
62 cls : 'roo-m-column-image',
64 style : 'max-width: ' + (this.width== '100%' ? '260' : this.width ) +'px;'
66 if (this.width != '100%' ) {
67 img.width = this.width;
76 cls : 'roo-m-column-'+ this.column + '-content',
91 cls : 'roo-m-column-'+ this.column + '-content roo-m-column-body',
100 getChildContainer : function()
104 return this.el.select('.roo-m-column-body',true).first();