From 222f481b31fac1be8284bdb6370edc55538768fc Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 9 Sep 2016 11:01:10 +0800 Subject: [PATCH] Roo/doc/Param.js roojs-doc.js roojs-doc-debug.js --- Roo/doc/Param.js | 2 +- roojs-doc-debug.js | 6 +++++- roojs-doc.js | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Roo/doc/Param.js b/Roo/doc/Param.js index ce396a7ee8..f91d05b1bd 100644 --- a/Roo/doc/Param.js +++ b/Roo/doc/Param.js @@ -82,7 +82,7 @@ Roo.extend(Roo.doc.Param, Roo.bootstrap.Component, { ' ', { tag : 'b', - html : this.name, + html : this.name }, this.defaultvalue == '' ? '' : ' = ', this.defaultvalue, diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index 9df36f48a1..714718f9e9 100644 --- a/roojs-doc-debug.js +++ b/roojs-doc-debug.js @@ -285,9 +285,13 @@ Roo.extend(Roo.doc.Param, Roo.bootstrap.Component, { this.is_optional ? '[' : '', this.type, ' ', - this.name, + { + tag : 'b', + html : this.name + }, this.defaultvalue == '' ? '' : ' = ', this.defaultvalue, + this.is_optional ? ']' : '', ',' // not really.. but let's do it anyway... ] }; diff --git a/roojs-doc.js b/roojs-doc.js index 9a2d387aba..3405abb902 100644 --- a/roojs-doc.js +++ b/roojs-doc.js @@ -10,8 +10,8 @@ Roo.doc.Para=function(A){Roo.doc.Para.superclass.constructor.call(this,A);};Roo. ;}return A;}}); // Roo/doc/Param.js Roo.doc.Param=function(A){Roo.doc.Param.superclass.constructor.call(this,A);};Roo.extend(Roo.doc.Param,Roo.bootstrap.Component,{is_optional:false,type:'',name:'',defaultvalue:'',desc:'',getAutoCreate:function(){if(this.parent().stype=='parameter'){return {tag:'li',cn:[{tag:'p',cls:'para',cn:[{tag:'code',html:this.type+' '+this.name} -,this.desc]}]};}if(this.parent().stype=='return'){return {tag:'p',cls:'para',cn:[{tag:'code',html:this.type},this.desc]};}var A={tag:'span',cn:[this.is_optional?'[':'',this.type,' ',this.name,this.defaultvalue==''?'':' = ',this.defaultvalue,',']};return A; -}}); +,this.desc]}]};}if(this.parent().stype=='return'){return {tag:'p',cls:'para',cn:[{tag:'code',html:this.type},this.desc]};}var A={tag:'span',cn:[this.is_optional?'[':'',this.type,' ',{tag:'b',html:this.name},this.defaultvalue==''?'':' = ',this.defaultvalue,this.is_optional?']':'',',']} +;return A;}}); // Roo/doc/Section.js Roo.doc.Section=function(A){Roo.doc.Section.superclass.constructor.call(this,A);};Roo.extend(Roo.doc.Section,Roo.bootstrap.Component,{stype:'',getAutoCreate:function(){var A={cls:'refsection',cn:[{tag:'h1',cls:'title',html:Roo.doc.Section.map[this.stype]}]} ;if(this.stype=='parameter'){A.cn.push({tag:'ul',cls:'itemizedlist roo-params'});}return A;},getChildContainer:function(A){if(this.stype=='parameter'){return this.el.select('.roo-params',true).first();}return this.el;}});Roo.doc.Section.map={'desc':'Description','parameter':'Parameters','return':'Return Value','note':'Notes','example':'Examples'}; -- 2.39.2