7 * @class Roo.doc.Synopsis
8 * @extends Roo.bootstrap.Component
9 * Synopsis Element class
10 * @cfg {String} returntype return value
11 * @cfg {String} returndesc description of return value. (used in the return section if set..)
12 * @cfg {String} name title really..
13 * @cfg {String} stype (function|constant)
14 * @cfg {String} memberof class name
15 * @cfg {bool} is_static is a static member
16 * @cfg {bool} is_constructor is a static member
19 * Create a new Synopsis
20 * @param {Object} config The config object
23 Roo.doc.Synopsis = function(config){
24 Roo.doc.Synopsis.superclass.constructor.call(this, config);
27 Roo.extend(Roo.doc.Synopsis, Roo.bootstrap.Component, {
35 is_constructor : false,
37 getAutoCreate : function(){
39 var syn = this.items[0]; // hopefully...
43 var nmp = (this.is_static ? '' : '$') +
45 (this.is_static ? '::' : '->');
48 // this should probably do the params....?? then we need to disable the rendering..
50 if (this.is_constructor) {
59 cls : 'refsynopsisdiv',
68 cls : 'funcprototype',
70 this.returntype + ' ' + nmp,
96 getChildContainer : function(build_call)
100 return this.el.select('.roo-params',true).first();