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