Roo/mailer/BodyContainer.js
authorAlan Knowles <alan@roojs.com>
Thu, 18 Sep 2014 09:13:16 +0000 (17:13 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 18 Sep 2014 09:13:16 +0000 (17:13 +0800)
Roo/mailer/BodyContainer.js [new file with mode: 0644]

diff --git a/Roo/mailer/BodyContainer.js b/Roo/mailer/BodyContainer.js
new file mode 100644 (file)
index 0000000..691506e
--- /dev/null
@@ -0,0 +1,74 @@
+/*
+ * - LGPL
+ *
+ * element
+ * <!-- BEGIN TEMPLATE // -->
+                       <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
+                               <tr>
+                               <td align="center" valign="top">
+                              
+ */
+
+/**
+ * @class Roo.mailer.BodyContainer 
+ * @extends Roo.bootstrap.Component
+ * Bootstrap Element class
+ * @cfg {String} cls class of the element
+ * 
+ * @constructor
+ * Create a new Element
+ * @param {Object} config The config object
+ */
+
+Roo.mailer.BodyContainer = function(config){
+    Roo.mailer.BodyContainer.superclass.constructor.call(this, config);
+};
+
+Roo.extend(Roo.mailer.BodyContainer, Roo.bootstrap.Component,  {
+    
+    
+    cls: '',
+     
+    
+    getAutoCreate : function(){
+        
+        var cfg = {
+            tag: 'table',
+            border : 0,
+            cellpadding : 0,
+            cellspacing : 0,
+            cls: 'roo-m-body-container ' + this.cls 
+            
+        };
+        
+        
+       
+        return cfg;
+    },
+    getChildContainer : function()
+    {
+        // add a child...
+        var tr = this.el.select('tbody').createChild({
+                    tag : 'tr',
+                    cn : [
+                        {   
+                            tag:  'td',
+                            align : 'center',
+                            valign : 'top',
+                            cls : 'roo-m-child-ctr'
+                        }
+                    ]
+                });
+        
+        return tr.select('.roo-m-child-ctr').first();
+    }
+    
+    
+    
+    
+   
+});
+
+
\ No newline at end of file