* @extends Roo.bootstrap.Component
* Example Element class
* @cfg {String} title short title describing example
- * @cfg {String} lang (php|txt|sql) section type.
+ * @cfg {String} lang (php|txt|sql) code language.
* @cfg {String} code example code
* @cfg {String} output The expected output from the code
+ * @cfg {String} outputlang php|txt|sql) output language
*
*
* @constructor
var code = hljs ? hljs.highlight(this.lang,this.code).value :
String.format('{0}',this.code).replace(/\n/g, '<br/>');
-
+ Roo.log("code=" + code);
var cfg ={
cls : 'panel panel-info',
cn : [
var cfg ={
tag: 'p',
cls: 'para',
- html : this.html
+ html : Roo.Markdown.toHtml(this.html)
};
if (this.parent().is_list) {
//?? this is the synopsis type....
+ var desc = Roo.Markdown.toHtml(this.desc);
if (this.parent().stype == 'parameter') {
tag: 'code',
html : this.type + ' ' + this.name
},
- this.desc
+ desc
]
}
]
tag: 'code',
html : this.type
},
- this.desc
+ desc
]
};
},
getAutoCreateParamSection : function()
{
+ var desc = Roo.Markdown.toHtml(this.desc);
+
+
return {
tag : 'li',
cn : [
tag: 'code',
html : this.type + ' ' + this.name
},
- this.desc
+ desc
]
}
]
cfg.cn.push(ul);
}
- if (this.stype == 'return' && syn.returndesc.length) {
+ if (this.stype == 'return' && (syn.returndesc.length || syn.returntype.length )) {
cfg.cn.push({
tag: 'p',
'parameter' : 'Parameters',
'return' : 'Return Value',
'note' : 'Notes',
- 'example' : 'Examples'
+ 'example' : 'Examples',
+ 'throws' : 'Throws Exception'
}
/*
* - LGPL
* @cfg {String} stype (function|constant)
* @cfg {String} memberof class name
* @cfg {bool} is_static is a static member
+ * @cfg {bool} is_constructor is a static member
*
* @constructor
* Create a new Synopsis
returndesc : '',
name: '',
stype: 'function',
-
+ is_constructor : false,
+
getAutoCreate : function(){
var syn = this.items[0]; // hopefully...
this.memberof +
(this.is_static ? '::' : '->');
-
+ var nm = this.name;
// this should probably do the params....?? then we need to disable the rendering..
+ if (this.is_constructor) {
+
+ nm = this.memberof;
+ nmp = 'new ';
+ }
+
var cfg ={
tag: 'h5',
{
tag: 'strong',
cls : this.stype,
- html : this.name
+ html : nm
},
'(',
{
Roo.doc.NavCategory = function(config){
Roo.doc.Para.superclass.constructor.call(this, config);
+ Roo.doc.NavCategory.registry[this.name] = this;
};
-
+Roo.doc.NavCategory.registry = {};
Roo.extend(Roo.doc.NavCategory, Roo.bootstrap.Component, {
title : '',
},
getChildContainer : function()
{
- return this.el.select('roo-child-ctr',true).first();
+ return this.el.select('.roo-child-ctr',true).first();
}