* @class Roo.doc.NavCategory
* @extends Roo.bootstrap.Component
* Navigation Category class
- * @cfg {Object} settings
+ * @cfg {string} title
+ * @cfg {string} name
*
* Represent's an category on the left menu.
* - phpdoc @category elements map the pages to the categories
*
*
* @constructor
- * Create a new Paragraph
+ * Create a new Navigation Category
* @param {Object} config The config object
*/
-Roo.doc.Para = function(config){
+Roo.doc.NavCategory = function(config){
Roo.doc.Para.superclass.constructor.call(this, config);
+ Roo.doc.NavCategory.registry[this.name] = this;
};
-
-Roo.extend(Roo.doc.Para, Roo.bootstrap.Component, {
+Roo.doc.NavCategory.registry = {};
+Roo.extend(Roo.doc.NavCategory, Roo.bootstrap.Component, {
- html : '',
+ title : '',
+ name : '',
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 ]
- };
- }
-
+ cn : [
+
+ {
+ tag : 'a',
+ cls: 'roo-nav-category',
+ href : '#' + this.name,
+ html : this.title
+ },
+ {
+ cls : 'container roo-child-ctr'
+ }
+ ]
+ };
+
return cfg;
+ },
+ getChildContainer : function()
+ {
+ return this.el.select('.roo-child-ctr',true).first();
}
-
-
-