5 * <!-- BEGIN TEMPLATE // -->
6 <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
8 <td align="center" valign="top">
13 * @class Roo.mailer.BodyContainer
14 * @extends Roo.bootstrap.Component
15 * Bootstrap Element class
16 * @cfg {String} cls class of the element
19 * Create a new Element
20 * @param {Object} config The config object
23 Roo.mailer = Roo.mailer || {};
25 Roo.mailer.Body = function(config){
26 Roo.mailer.Body.superclass.constructor.call(this, config);
27 //this.el = Roo.get(document.body);
29 Roo.get(document.body).attr({
39 Roo.extend(Roo.mailer.Body, Roo.bootstrap.Component, {
45 getAutoCreate : function(){
57 cls: 'roo-m-body-table ' + this.cls,
67 cls : 'roo-m-body-cell'
79 getChildContainer : function()
83 return this.el.select('.roo-m-body-cell').first();
98 * <!-- BEGIN TEMPLATE // -->
99 <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
101 <td align="center" valign="top">
106 * @class Roo.mailer.Block
107 * @extends Roo.bootstrap.Component
108 * Bootstrap Element class
109 * @cfg {String} cls class of the element
110 * @cfg {String} html content of header (not used for columns)
111 * @cfg {String} blocktype (header|preheader|footer|body|olumn-container)
114 * Create a new Element
115 * @param {Object} config The config object
118 Roo.mailer.Block = function(config){
119 Roo.mailer.Block.superclass.constructor.call(this, config);
122 Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component, {
127 blocktype : 'header',
129 getAutoCreate : function(){
133 cls : 'roo-m-block-tr'
135 if (this.blocktype != 'column-container') {
141 cls : 'roo-m-' + this.blocktype + '-content',
154 cls: 'roo-m-' + this.blocktype + ' ' + this.cls,
163 getChildContainer : function()
166 if (this.blogtype == 'column-container') {
167 var par = this.select(
168 'roo-m-block-tr',true
170 return par.createChild( {
174 style : 'padding-top : 20px;',
175 cls : 'roo-m-column-container'
181 return this.el.select('.roo-m-' + this.blocktype + '-content',true).first();
196 * <!-- BEGIN TEMPLATE // -->
197 <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
199 <td align="center" valign="top">
204 * @class Roo.mailer.BodyContainer
205 * @extends Roo.bootstrap.Component
206 * Bootstrap Element class
207 * @cfg {String} cls class of the element
210 * Create a new Element
211 * @param {Object} config The config object
214 Roo.mailer.BodyContainer = function(config){
215 Roo.mailer.BodyContainer.superclass.constructor.call(this, config);
218 Roo.extend(Roo.mailer.BodyContainer, Roo.bootstrap.Component, {
224 getAutoCreate : function(){
231 cls: 'roo-m-body-container ' + this.cls
239 getChildContainer : function()
242 var tr = this.el.createChild({
249 cls : 'roo-m-child-ctr'
254 return tr.select('.roo-m-child-ctr').first();
269 * <!-- BEGIN TEMPLATE // -->
270 <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
272 <td align="center" valign="top">
277 * @class Roo.mailer.Column
278 * @extends Roo.bootstrap.Component
279 * Bootstrap Element class
280 * @cfg {String} cls class of the element
281 * @cfg {String} html content of body
282 * @cfg {String} src image url
283 * @cfg {String} column (left|right)
286 * Create a new Element
287 * @param {Object} config The config object
290 Roo.mailer.Column = function(config){
291 Roo.mailer.Column.superclass.constructor.call(this, config);
294 Roo.extend(Roo.mailer.Column, Roo.bootstrap.Component, {
302 getAutoCreate : function(){
320 if (this.src != '') {
328 cls : 'roo-m-column-'+ this.column + '-content',
333 cls : 'roo-m-column-image',
334 style : 'max-width: 260px;'
349 cls : 'roo-m-column-'+ this.column + '-content roo-m-column-body',
358 getChildContainer : function()
362 return this.el.select('.roo-m-column-body',true).first();