12601e658389d75b552387f51cd43b3d73ff9886
[roojs1] / docs / Roo.docs.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 Roo.namespace('Roo');
6
7 Roo.docs = new Roo.XComponent({
8
9  _strings : {
10   '3e6ec55e2dff4342e3f25b0b0b988de9' :"Inheritance tree",
11   'ae635f08107a69569e636835f24e6f6f' :" extends ",
12   '87f9f735a1d36793ceaecd4e47124b63' :"Events",
13   'd41d8cd98f00b204e9800998ecf8427e' :"",
14   '50f33d14f129e4548c1c270fd6725a78' :"Configuration options",
15   'e64b94523532dbac62df6795a5153f04' :"doc-desc",
16   '3673e725413179fe76f341ed908a5c36' :"Defined in: ",
17   'd2b697ad8e989a6c4592987f22f5bbfc' :"doc-comments",
18   'f361257612a512f9be2fdc2abfb25aef' :"<small>Defined by</small>",
19   '494a64a432ff6a121e4ab9003c7a0df3' :"parentcls",
20   '9bd81329febf6efe22788e03ddeaf0af' :" Class ",
21   'f561aaf6ef0bf14d4208bb46a4ccb3ad' :"xxx",
22   'a1d108496af420635536a4e29e87d42b' :"Constructor, Static and Public Methods",
23   'd41d8cd98f00b204e9800998ecf8427e' :" "
24  },
25
26   part     :  ["docs2", "docs" ],
27   order    : '001-Roo.docs',
28   region   : 'center',
29   parent   : false,
30   name     : "unnamed module",
31   disabled : false, 
32   permname : '', 
33   _tree : function(_data)
34   {
35    var _this = this;
36    var MODULE = this;
37    return {
38    xtype : 'Body',
39    cls : 'doc-body',
40    listeners : {
41     render : function (_self)
42      {
43            
44         
45          
46      }
47    },
48    xns : Roo.bootstrap,
49    '|xns' : 'Roo.bootstrap',
50    items  : [
51     {
52      xtype : 'NavSidebar',
53      cls : 'left-menu-sidebar',
54      style : 'padding-top:80px;',
55      listeners : {
56       render : function (_self)
57        {
58          //  this.el.addClass(language);
59            
60        }
61      },
62      xns : Roo.bootstrap,
63      '|xns' : 'Roo.bootstrap',
64      items  : [
65       {
66        xtype : 'NavGroup',
67        activeLookup : function() 
68        { 
69            return;
70            
71            var pathname = window.location.pathname.substring(baseURL.length);
72            
73            if(!pathname.length){
74                return;
75            }
76            
77            if(pathname.match(/^\/Projects/)){
78                pathname = '/Projects';
79            }
80            
81            var lookupPath = function(item)
82            {
83                if(typeof(item.href) == 'undefined' || !item.href.length || item.href == '#'){
84                    return true;
85                }
86                
87                item.el.removeClass('active');
88                
89                var href = item.href.substring(baseURL.length);
90                
91                if(href != pathname){
92                    return true;
93                }
94                
95                item.el.addClass('active');
96                return false;
97                    
98            };
99            
100            var seted = false;
101            
102            Roo.each(_this.navGroup.items, function(i){
103                
104                var s = lookupPath(i);
105                
106                if(!s){
107                    return false;
108                }
109                
110                if(typeof(i.menu) == 'undefined' || !i.menu.items.length){
111                    return;
112                }
113                
114                Roo.each(i.menu.items, function(ii){
115                    
116                    var ss = lookupPath(ii);
117                    
118                    if(!ss){
119                        seted = true;
120                        return false;
121                    }
122                    
123                });
124                
125                if(seted){
126                    return false;
127                }
128                
129            });
130        },
131        autoExpand : function() 
132        { 
133            return;
134            
135            _this.menu_expand = false;
136            
137            var lookupMenu = function(menu, index){
138                
139                if(menu.target == pagedata.page.target){
140                    _this.menu_expand = index + 1;
141                    return;
142                }
143                
144                if(!menu.children.length){
145                    return;
146                }
147                
148                Roo.each(menu.children, function(c){
149                    lookupMenu(c, index);
150                });
151                
152            }
153            
154            Roo.each(pagemenus, function(v, k){
155                
156                lookupMenu(v, k);
157                
158            });
159            
160            if(_this.menu_expand === false){
161                return;
162            }
163            
164            if(typeof(_this.navGroup.items[_this.menu_expand].menu) == 'undefined'){
165                return;
166            }
167            
168            _this.navGroup.items[_this.menu_expand].menu.show(_this.navGroup.items[_this.menu_expand].el, false, false);
169            
170        },
171        listeners : {
172         childrenrendered : function (_self)
173          {
174              _this.navGroup.autoExpand();
175              
176              _this.navGroup.activeLookup();
177          },
178         render : function (_self)
179          {
180              _this.navGroup = this;
181              
182          }
183        },
184        xns : Roo.bootstrap,
185        '|xns' : 'Roo.bootstrap',
186        items  : [
187         {
188          xtype : 'NavItem',
189          active : false,
190          cls : '',
191          style : 'position:fixed;top:0;z-Index:1000;',
192          xns : Roo.bootstrap,
193          '|xns' : 'Roo.bootstrap',
194          items  : [
195           {
196            xtype : 'Link',
197            cls : 'logo',
198            href : baseURL +'/',
199            preventDefault : false,
200            xns : Roo.bootstrap,
201            '|xns' : 'Roo.bootstrap'
202           }
203          ]
204         }
205        ]
206       },
207       {
208        xtype : 'Container',
209        cls : 'left-menu-sidebar-options',
210        xns : Roo.bootstrap,
211        '|xns' : 'Roo.bootstrap',
212        items  : [
213         {
214          xtype : 'Row',
215          xns : Roo.bootstrap,
216          '|xns' : 'Roo.bootstrap'
217         }
218        ]
219       }
220      ]
221     },
222     {
223      xtype : 'NavHeaderbar',
224      autohide : true,
225      brand : ' ',
226      brand_href : baseURL + '/',
227      cls : 'mobile-header-menu',
228      inverse : false,
229      position : 'fixed-top',
230      style : '',
231      listeners : {
232       beforetoggle : function (_self)
233        {
234            _this.navGroup.autoExpand(); 
235            
236            _this.navGroup.activeLookup();
237            
238            _this.navHeaderBar.mask.show();
239            
240            if(this.el.select('.navbar-collapse',true).first().hasClass('in')){
241                _this.navHeaderBar.mask.hide();
242                return;
243            }
244        },
245       render : function (_self)
246        {
247            return;
248            
249            _this.navHeaderBar = this;
250            
251            this.el.addClass(language); 
252            
253            var body = Roo.select('body', true).first();
254            
255            var mark = {
256                tag: "div",
257                cls:"x-dlg-mask"
258            };
259            
260            this.mask = Roo.DomHelper.append(body, mark, true);
261            
262            var size = body.getSize();
263            this.mask.setSize(size.width, size.height);
264            
265            this.mask.setStyle('z-index', '1029');
266            
267            this.mask.enableDisplayMode("block");
268            this.mask.hide();
269            
270            this.mask.on('click', function(){
271                
272                this.el.select('.navbar-collapse',true).removeClass('in'); 
273                this.mask.hide();
274                
275            }, this);
276            
277            
278            var maxHeight = Roo.lib.Dom.getViewHeight() - this.el.select('.navbar-header', true).first().getHeight();
279            
280            this.el.select('.navbar-collapse', true).first().setStyle('max-height', maxHeight);
281            
282        }
283      },
284      xns : Roo.bootstrap,
285      '|xns' : 'Roo.bootstrap'
286     },
287     {
288      xtype : 'Container',
289      cls : 'general-content-body',
290      listeners : {
291       render : function (_self)
292        {
293            _this.doc_body_content = this;
294        }
295      },
296      xns : Roo.bootstrap,
297      '|xns' : 'Roo.bootstrap',
298      items  : [
299       {
300        xtype : 'Row',
301        style : 'margin: 0px;',
302        xns : Roo.bootstrap,
303        '|xns' : 'Roo.bootstrap',
304        items  : [
305         {
306          xtype : 'Column',
307          md : 9,
308          style : 'padding-left: 0px;',
309          xns : Roo.bootstrap,
310          '|xns' : 'Roo.bootstrap',
311          items  : [
312           {
313            xtype : 'Container',
314            cls : 'doc-header-container',
315            xns : Roo.bootstrap,
316            '|xns' : 'Roo.bootstrap',
317            items  : [
318             {
319              xtype : 'Header',
320              html : _this._strings['9bd81329febf6efe22788e03ddeaf0af'] /*  Class  */,
321              level : 4,
322              xns : Roo.bootstrap,
323              '|xns' : 'Roo.bootstrap',
324              items  : [
325               {
326                xtype : 'Element',
327                cls : 'doc-classname',
328                html : _this._strings['f561aaf6ef0bf14d4208bb46a4ccb3ad'] /* xxx */,
329                style : 'font-size: 24px;\n    font-weight: bold;',
330                tag : 'span',
331                listeners : {
332                 render : function (_self)
333                  {
334                      _this.doc_name = this
335                  }
336                },
337                xns : Roo.bootstrap,
338                '|xns' : 'Roo.bootstrap'
339               },
340               {
341                xtype : 'Element',
342                cls : 'doc-extends-str',
343                html : _this._strings['ae635f08107a69569e636835f24e6f6f'] /*  extends  */,
344                tag : 'small',
345                listeners : {
346                 render : function (_self)
347                  {
348                      _this.doc_extends_sep = this;
349                  }
350                },
351                xns : Roo.bootstrap,
352                '|xns' : 'Roo.bootstrap',
353                items  : [
354                 {
355                  xtype : 'Link',
356                  cls : 'doc-extends',
357                  html : _this._strings['494a64a432ff6a121e4ab9003c7a0df3'] /* parentcls */,
358                  preventDefault : false,
359                  listeners : {
360                   click : function (e)
361                    {
362                    
363                        if (this.el.dom.innerHTML.length) {
364                            Roo.docs.init.loadDoc({ name : this.el.dom.innerHTML, is_class : true});
365                        }
366                    },
367                   render : function (_self)
368                    {
369                        _this.doc_extends = this;
370                    }
371                  },
372                  xns : Roo.bootstrap,
373                  '|xns' : 'Roo.bootstrap'
374                 }
375                ]
376               }
377              ]
378             },
379             {
380              xtype : 'Header',
381              html : _this._strings['3673e725413179fe76f341ed908a5c36'] /* Defined in:  */,
382              level : 5,
383              xns : Roo.bootstrap,
384              '|xns' : 'Roo.bootstrap',
385              items  : [
386               {
387                xtype : 'Link',
388                cls : 'doc-source',
389                href : '#',
390                html : _this._strings['3673e725413179fe76f341ed908a5c36'] /* Defined in:  */,
391                preventDefault : true,
392                listeners : {
393                 click : function (e)
394                  {
395                      
396                      Roo.log(["click", this]);
397                      if (this.el.dom.innerHTML.length > 0) {
398                          Roo.docs.init.loadSource();
399                      }
400                  },
401                 render : function (_self)
402                  {
403                      _this.doc_source = this;
404                  }
405                },
406                xns : Roo.bootstrap,
407                '|xns' : 'Roo.bootstrap'
408               }
409              ]
410             }
411            ]
412           },
413           {
414            xtype : 'Container',
415            cls : 'doc-desc',
416            html : _this._strings['e64b94523532dbac62df6795a5153f04'] /* doc-desc */,
417            listeners : {
418             render : function (_self)
419              {
420                  _this.doc_desc = this;
421              }
422            },
423            xns : Roo.bootstrap,
424            '|xns' : 'Roo.bootstrap'
425           },
426           {
427            xtype : 'Container',
428            cls : 'doc-comments',
429            hidden : true,
430            html : _this._strings['d2b697ad8e989a6c4592987f22f5bbfc'] /* doc-comments */,
431            xns : Roo.bootstrap,
432            '|xns' : 'Roo.bootstrap'
433           }
434          ]
435         },
436         {
437          xtype : 'Column',
438          md : 3,
439          xns : Roo.bootstrap,
440          '|xns' : 'Roo.bootstrap',
441          items  : [
442           {
443            xtype : 'Container',
444            cls : 'doc-augments',
445            header : _this._strings['3e6ec55e2dff4342e3f25b0b0b988de9'] /* Inheritance tree */,
446            panel : 'success',
447            listeners : {
448             render : function (_self)
449              {
450                  _this.augments  = this;
451              }
452            },
453            xns : Roo.bootstrap,
454            '|xns' : 'Roo.bootstrap'
455           }
456          ]
457         }
458        ]
459       },
460       {
461        xtype : 'Container',
462        cls : 'doc-table-container',
463        expandable : true,
464        expanded : true,
465        header : _this._strings['50f33d14f129e4548c1c270fd6725a78'] /* Configuration options */,
466        panel : 'info',
467        style : 'margin-top:15px',
468        listeners : {
469         render : function (_self)
470          {
471              _this.configTableContainer = this;
472          }
473        },
474        xns : Roo.bootstrap,
475        '|xns' : 'Roo.bootstrap',
476        items  : [
477         {
478          xtype : 'Table',
479          rowSelection : true,
480          striped : true,
481          listeners : {
482           render : function (_self)
483            {
484                _this.configTable = this;
485            },
486           rowclass : function (_self, rowcfg)
487            {
488                  rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';
489                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
490            },
491           rowclick : function (_self, el, rowIndex, e)
492            {
493                if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
494                    return false;
495                }
496                
497                var r = this.store.getAt(rowIndex);
498                r.json.expanded = !r.json.expanded ;
499                this.refreshRow(r);
500            }
501          },
502          xns : Roo.bootstrap,
503          '|xns' : 'Roo.bootstrap',
504          store : {
505           xtype : 'Store',
506           xns : Roo.data,
507           '|xns' : 'Roo.data',
508           proxy : {
509            xtype : 'MemoryProxy',
510            xns : Roo.data,
511            '|xns' : 'Roo.data'
512           },
513           reader : {
514            xtype : 'ArrayReader',
515            fields : [ 'name', 'type', 'desc', 'memberOf' ],
516            xns : Roo.data,
517            '|xns' : 'Roo.data'
518           }
519          },
520          cm : [
521           {
522            xtype : 'ColumnModel',
523            dataIndex : 'name',
524            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
525            md : 11,
526            renderer : function(v,x,r) { 
527            
528                return Roo.docs.template.config(r.json);
529            
530                                 
531            },
532            xns : Roo.grid,
533            '|xns' : 'Roo.grid'
534           },
535           {
536            xtype : 'ColumnModel',
537            dataIndex : 'memberOf',
538            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
539            md : 1,
540            renderer : function(v,x,r) { 
541             if (r.json.memberOf  == Roo.docs.init.currentClass) {
542                        return '';
543                    }
544            
545                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
546                                 
547            },
548            xns : Roo.grid,
549            '|xns' : 'Roo.grid'
550           }
551          ]
552         }
553        ]
554       },
555       {
556        xtype : 'Container',
557        cls : 'doc-table-container',
558        expandable : true,
559        expanded : false,
560        header : _this._strings['a1d108496af420635536a4e29e87d42b'] /* Constructor, Static and Public Methods */,
561        panel : 'info',
562        listeners : {
563         render : function (_self)
564          {
565              _this.methodsTableContainer = this;
566          }
567        },
568        xns : Roo.bootstrap,
569        '|xns' : 'Roo.bootstrap',
570        items  : [
571         {
572          xtype : 'Table',
573          rowSelection : true,
574          listeners : {
575           render : function (_self)
576            {
577                _this.methodsTable = this;
578            },
579           rowclass : function (_self, rowcfg)
580            {
581                  var j = rowcfg.record.json;
582                  var rc = j.memberOf == Roo.docs.init.currentClass || j.isConstructor ? 'doc-added-member '  : 'doc-not-member ';
583                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
584            },
585           rowclick : function (_self, el, rowIndex, e)
586            {
587                  if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
588                    return false;
589                }
590                 var r = this.store.getAt(rowIndex);
591                r.json.expanded = !r.json.expanded ;
592                this.refreshRow(r);
593            }
594          },
595          xns : Roo.bootstrap,
596          '|xns' : 'Roo.bootstrap',
597          store : {
598           xtype : 'Store',
599           sortInfo : { field : 'name', direction : 'ASC' },
600           xns : Roo.data,
601           '|xns' : 'Roo.data',
602           proxy : {
603            xtype : 'MemoryProxy',
604            xns : Roo.data,
605            '|xns' : 'Roo.data'
606           },
607           reader : {
608            xtype : 'ArrayReader',
609            fields : [ 'name', 'type', 'desc', 'memberOf' ],
610            xns : Roo.data,
611            '|xns' : 'Roo.data'
612           }
613          },
614          cm : [
615           {
616            xtype : 'ColumnModel',
617            dataIndex : 'name',
618            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*   */,
619            md : 11,
620            renderer : function(v,x,r) { 
621            
622                return Roo.docs.template.method(r.json);
623                          
624                                 
625            },
626            sortable : false,
627            xns : Roo.grid,
628            '|xns' : 'Roo.grid'
629           },
630           {
631            xtype : 'ColumnModel',
632            dataIndex : 'memberOf',
633            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
634            md : 1,
635            renderer : function(v,x,r) { 
636            
637             if (r.json.memberOf  == Roo.docs.init.currentClass) {
638                        return '';
639                    }
640                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
641                                 
642            },
643            xns : Roo.grid,
644            '|xns' : 'Roo.grid'
645           }
646          ]
647         }
648        ]
649       },
650       {
651        xtype : 'Container',
652        cls : 'doc-table-container',
653        expandable : true,
654        expanded : false,
655        header : _this._strings['87f9f735a1d36793ceaecd4e47124b63'] /* Events */,
656        panel : 'info',
657        listeners : {
658         render : function (_self)
659          {
660              _this.eventsTableContainer   = this;
661          }
662        },
663        xns : Roo.bootstrap,
664        '|xns' : 'Roo.bootstrap',
665        items  : [
666         {
667          xtype : 'Table',
668          rowSelection : true,
669          listeners : {
670           render : function (_self)
671            {
672                _this.eventsTable = this;
673            },
674           rowclass : function (_self, rowcfg)
675            {
676                  rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';
677                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
678            },
679           rowclick : function (_self, el, rowIndex, e)
680            {
681                    if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
682                    return false;
683                }
684                var r = this.store.getAt(rowIndex);
685                r.json.expanded = !r.json.expanded ;
686                this.refreshRow(r);
687            }
688          },
689          xns : Roo.bootstrap,
690          '|xns' : 'Roo.bootstrap',
691          store : {
692           xtype : 'Store',
693           xns : Roo.data,
694           '|xns' : 'Roo.data',
695           proxy : {
696            xtype : 'MemoryProxy',
697            xns : Roo.data,
698            '|xns' : 'Roo.data'
699           },
700           reader : {
701            xtype : 'ArrayReader',
702            fields : [ 'name', 'type', 'desc', 'memberOf' ],
703            xns : Roo.data,
704            '|xns' : 'Roo.data'
705           }
706          },
707          cm : [
708           {
709            xtype : 'ColumnModel',
710            dataIndex : 'name',
711            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
712            md : 11,
713            renderer : function(v,x,r) { 
714            
715                return Roo.docs.template.event(r.json);
716                          
717                                 
718            },
719            xns : Roo.grid,
720            '|xns' : 'Roo.grid'
721           },
722           {
723            xtype : 'ColumnModel',
724            dataIndex : 'memberOf',
725            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
726            md : 1,
727            renderer : function(v,x,r) { 
728                    if (r.json.memberOf  == Roo.docs.init.currentClass) {
729                        return '';
730                    }
731            
732                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
733                                 
734            },
735            xns : Roo.grid,
736            '|xns' : 'Roo.grid'
737           }
738          ]
739         }
740        ]
741       }
742      ]
743     }
744    ]
745   };  }
746 });