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.Body = function(config){
24 Roo.mailer.Body.superclass.constructor.call(this, config);
25 //this.el = Roo.get(document.body);
27 Roo.get(document.body).attr({
37 Roo.extend(Roo.mailer.Body, Roo.bootstrap.Component, {
43 getAutoCreate : function(){
55 cls: 'roo-m-body-table ' + this.cls,
65 cls : 'roo-m-body-cell'
77 getChildContainer : function()
81 return this.el.select('.roo-m-body-cell').first();
96 * <!-- BEGIN TEMPLATE // -->
97 <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
99 <td align="center" valign="top">
104 * @class Roo.mailer.Block
105 * @extends Roo.bootstrap.Component
106 * Bootstrap Element class
107 * @cfg {String} cls class of the element
108 * @cfg {String} html content of header (not used for columns)
109 * @cfg {String} blocktype (header|preheader|footer|column-container)
112 * Create a new Element
113 * @param {Object} config The config object
116 Roo.mailer.Block = function(config){
117 Roo.mailer.Block.superclass.constructor.call(this, config);
120 Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component, {
125 blocktype : 'header',
127 getAutoCreate : function(){
131 cls : 'roo-m-block-tr'
133 if (this.blocktype != 'column-container') {
139 cls : 'roo-m-' + this.blocktype + '-content',
152 cls: 'roo-m-' + this.blocktype + ' ' + this.cls,
161 getChildContainer : function()
164 if (this.blogtype == 'column-container') {
165 var par = this.select(
166 'roo-m-block-tr',true
168 return par.createChild( {
172 style : 'padding-top : 20px;',
173 cls : 'roo-m-column-container'
179 return this.el.select('.roo-m-' + this.blocktype + '-content',true).first();
194 * <!-- BEGIN TEMPLATE // -->
195 <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
197 <td align="center" valign="top">
202 * @class Roo.mailer.BodyContainer
203 * @extends Roo.bootstrap.Component
204 * Bootstrap Element class
205 * @cfg {String} cls class of the element
208 * Create a new Element
209 * @param {Object} config The config object
212 Roo.mailer.BodyContainer = function(config){
213 Roo.mailer.BodyContainer.superclass.constructor.call(this, config);
216 Roo.extend(Roo.mailer.BodyContainer, Roo.bootstrap.Component, {
222 getAutoCreate : function(){
229 cls: 'roo-m-template-container ' + this.cls,
237 getChildContainer : function()
240 var tr = this.el.createChild({
247 cls : 'roo-m-child-ctr'
252 return tr.select('.roo-m-child-ctr').first();