5 * <!-- BEGIN TEMPLATE // -->
6 <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
8 <td align="center" valign="top">
13 * @class Roo.mailer.Block
14 * @extends Roo.bootstrap.Component
15 * Bootstrap Element class
16 * @cfg {String} cls class of the element
17 * @cfg {String} html content of header (not used for columns)
18 * @cfg {String} blocktype (header|preheader|footer|body|row)
21 * Create a new Element
22 * @param {Object} config The config object
25 Roo.mailer.Block = function(config){
26 Roo.mailer.Block.superclass.constructor.call(this, config);
29 Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component, {
36 getAutoCreate : function(){
40 cls : 'roo-m-block-tr'
42 if (this.blocktype != 'row') {
48 cls : 'roo-m-' + this.blocktype + '-content',
61 cls: 'roo-m-' + this.blocktype + ' ' + this.cls,
70 getChildContainer : function(build_call)
73 if (this.blocktype == 'row' && build_call) {
74 var par = this.el.select(
75 '.roo-m-block-tr',true
77 return par.createChild( {
81 style : 'padding-top : 20px;',
88 return this.el.select('.roo-m-' + this.blocktype + '-content',true).first();