Roo/doc/NavCategory.js
authorAlan Knowles <alan@roojs.com>
Fri, 14 Oct 2016 01:58:16 +0000 (09:58 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Oct 2016 01:58:16 +0000 (09:58 +0800)
Roo/doc/NavCategory.js

index e69de29..7e31ac7 100644 (file)
@@ -0,0 +1,65 @@
+/*
+ * - LGPL
+ *
+ */
+
+/**
+ * @class Roo.doc.NavCategory
+ * @extends Roo.bootstrap.Component
+ * Navigation Category class
+ * @cfg {Object} settings
+ *
+ * Represent's an category on the left menu.
+ * - phpdoc @category elements map the pages to the categories
+ *   this should be on the left side of the menu, when the
+ *   contents are loaded, then it can expand this out, and add links
+ *   for each of the methods.
+ *
+ * 
+ * 
+ * @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