Roo/doc/Para.js
authorAlan Knowles <alan@roojs.com>
Thu, 8 Sep 2016 09:35:30 +0000 (17:35 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 8 Sep 2016 09:35:30 +0000 (17:35 +0800)
Roo/doc/Para.js [new file with mode: 0644]

diff --git a/Roo/doc/Para.js b/Roo/doc/Para.js
new file mode 100644 (file)
index 0000000..ff6514a
--- /dev/null
@@ -0,0 +1,57 @@
+/*
+ * - LGPL
+ *
+ */
+
+/**
+ * @class Roo.doc.Para
+ * @extends Roo.bootstrap.Component
+ * Param Element class
+ * @cfg {String} html
+ * 
+ * @constructor
+ * Create a new Paragraph
+ * @param {Object} config The config object
+ */
+
+Roo.doc.Para = function(config){
+    Roo.doc.Para.superclass.constructor.call(this, config);
+};
+
+Roo.extend(Roo.doc.Para, Roo.bootstrap.Component,  {
+    
+    html : '',
+    getAutoCreate : function(){
+        
+        //?? this is the synopsis type....
+        
+        // this is not very fancy...
+        
+        var cfg ={
+            tag: 'p',
+            cls: 'para',
+            html : this.html
+        };
+         
+        if (this.parent().is_list) {
+            return {
+                tag: 'li',
+                cls : listitme,
+                cn : [ cfg ]
+            };
+            
+        }
+       
+        return cfg;
+    }
+     
+    
+    
+    
+    
+   
+});
+
+
\ No newline at end of file