5efeb607e72d5e2810a34a8b6fe2b720e00462ec
[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      listeners : {
56       render : function (_self)
57        {
58          _this.sidebar = this;
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.hash = '#';
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 : '#',
234      cls : 'mobile-header-menu',
235      inverse : false,
236      position : 'fixed-top',
237      style : '',
238      listeners : {
239       beforetoggle : function (_self)
240        {
241           // _this.mobileNavGroup.autoExpand(); 
242            
243            
244        },
245       render : function (_self)
246        {
247           
248             _this.navHeaderBar = this;
249            return;
250            /*
251            var body = Roo.select('body', true).first();
252            
253            var mark = {
254                tag: "div",
255                cls:"x-dlg-mask"
256            };
257            
258            this.mask = Roo.DomHelper.append(body, mark, true);
259            
260            var size = body.getSize();
261            this.mask.setSize(size.width, size.height);
262            
263            this.mask.setStyle('z-index', '1029');
264            
265            this.mask.enableDisplayMode("block");
266            this.mask.hide();
267            
268            this.mask.on('click', function(){
269                
270                this.el.select('.navbar-collapse',true).removeClass('in'); 
271                this.mask.hide();
272                
273            }, this);
274            
275            
276            var maxHeight = Roo.lib.Dom.getViewHeight() - this.el.select('.navbar-header', true).first().getHeight();
277            
278            this.el.select('.navbar-collapse', true).first().setStyle('max-height', maxHeight);
279            */
280        }
281      },
282      xns : Roo.bootstrap,
283      '|xns' : 'Roo.bootstrap',
284      items  : [
285       {
286        xtype : 'NavGroup',
287        listeners : {
288         render : function (_self)
289          {
290              _this.mobileNavGroup = this;
291          }
292        },
293        xns : Roo.bootstrap,
294        '|xns' : 'Roo.bootstrap'
295       }
296      ]
297     },
298     {
299      xtype : 'Container',
300      cls : 'general-content-body general-content-intro',
301      listeners : {
302       render : function (_self)
303        {
304               _this.introContainer = this;
305        }
306      },
307      xns : Roo.bootstrap,
308      '|xns' : 'Roo.bootstrap',
309      items  : [
310       {
311        xtype : 'Header',
312        html : _this._strings['9b34238e8113db140b452beec500024b'] /* Roo JS Documentation */,
313        level : 1,
314        xns : Roo.bootstrap,
315        '|xns' : 'Roo.bootstrap'
316       },
317       {
318        xtype : 'Container',
319        listeners : {
320         render : function (_self)
321          {
322              _this.introBody = this;
323          }
324        },
325        xns : Roo.bootstrap,
326        '|xns' : 'Roo.bootstrap'
327       }
328      ]
329     },
330     {
331      xtype : 'Container',
332      cls : 'general-content-body',
333      listeners : {
334       render : function (_self)
335        {
336            _this.doc_body_content = this;
337        }
338      },
339      xns : Roo.bootstrap,
340      '|xns' : 'Roo.bootstrap',
341      items  : [
342       {
343        xtype : 'Row',
344        style : 'margin: 0px;',
345        xns : Roo.bootstrap,
346        '|xns' : 'Roo.bootstrap',
347        items  : [
348         {
349          xtype : 'Column',
350          md : 9,
351          xns : Roo.bootstrap,
352          '|xns' : 'Roo.bootstrap',
353          items  : [
354           {
355            xtype : 'Container',
356            cls : 'doc-header-container',
357            xns : Roo.bootstrap,
358            '|xns' : 'Roo.bootstrap',
359            items  : [
360             {
361              xtype : 'Header',
362              html : _this._strings['9bd81329febf6efe22788e03ddeaf0af'] /*  Class  */,
363              level : 4,
364              xns : Roo.bootstrap,
365              '|xns' : 'Roo.bootstrap',
366              items  : [
367               {
368                xtype : 'Element',
369                cls : 'doc-classname',
370                html : _this._strings['f561aaf6ef0bf14d4208bb46a4ccb3ad'] /* xxx */,
371                style : 'font-size: 24px;\n    font-weight: bold;',
372                tag : 'span',
373                listeners : {
374                 render : function (_self)
375                  {
376                      _this.doc_name = this
377                  }
378                },
379                xns : Roo.bootstrap,
380                '|xns' : 'Roo.bootstrap'
381               },
382               {
383                xtype : 'Element',
384                cls : 'doc-extends-str',
385                html : _this._strings['ae635f08107a69569e636835f24e6f6f'] /*  extends  */,
386                tag : 'small',
387                listeners : {
388                 render : function (_self)
389                  {
390                      _this.doc_extends_sep = this;
391                  }
392                },
393                xns : Roo.bootstrap,
394                '|xns' : 'Roo.bootstrap',
395                items  : [
396                 {
397                  xtype : 'Link',
398                  cls : 'doc-extends',
399                  html : _this._strings['494a64a432ff6a121e4ab9003c7a0df3'] /* parentcls */,
400                  preventDefault : true,
401                  listeners : {
402                   click : function (e)
403                    {
404                    
405                        if (this.el.dom.innerHTML.length) {
406                            document.location.hash = '#' +  this.el.dom.innerHTML;
407                          
408                        } 
409                    },
410                   render : function (_self)
411                    {
412                        _this.doc_extends = this;
413                    }
414                  },
415                  xns : Roo.bootstrap,
416                  '|xns' : 'Roo.bootstrap'
417                 }
418                ]
419               }
420              ]
421             },
422             {
423              xtype : 'Header',
424              html : _this._strings['3673e725413179fe76f341ed908a5c36'] /* Defined in:  */,
425              level : 5,
426              xns : Roo.bootstrap,
427              '|xns' : 'Roo.bootstrap',
428              items  : [
429               {
430                xtype : 'Link',
431                cls : 'doc-source',
432                href : '#',
433                html : _this._strings['3673e725413179fe76f341ed908a5c36'] /* Defined in:  */,
434                preventDefault : true,
435                listeners : {
436                 click : function (e)
437                  {
438                      
439                      Roo.log(["click", this]);
440                      if (this.el.dom.innerHTML.length > 0) {
441                          Roo.docs.init.loadSource();
442                      }
443                  },
444                 render : function (_self)
445                  {
446                      _this.doc_source = this;
447                  }
448                },
449                xns : Roo.bootstrap,
450                '|xns' : 'Roo.bootstrap'
451               }
452              ]
453             }
454            ]
455           },
456           {
457            xtype : 'Container',
458            cls : 'doc-desc',
459            html : _this._strings['e64b94523532dbac62df6795a5153f04'] /* doc-desc */,
460            listeners : {
461             render : function (_self)
462              {
463                  _this.doc_desc = this;
464              }
465            },
466            xns : Roo.bootstrap,
467            '|xns' : 'Roo.bootstrap'
468           },
469           {
470            xtype : 'Container',
471            cls : 'doc-comments',
472            hidden : true,
473            html : _this._strings['d2b697ad8e989a6c4592987f22f5bbfc'] /* doc-comments */,
474            xns : Roo.bootstrap,
475            '|xns' : 'Roo.bootstrap'
476           }
477          ]
478         },
479         {
480          xtype : 'Column',
481          md : 3,
482          xns : Roo.bootstrap,
483          '|xns' : 'Roo.bootstrap',
484          items  : [
485           {
486            xtype : 'Container',
487            cls : 'doc-augments',
488            header : _this._strings['3e6ec55e2dff4342e3f25b0b0b988de9'] /* Inheritance tree */,
489            panel : 'primary',
490            listeners : {
491             render : function (_self)
492              {
493                  _this.augments  = this;
494              }
495            },
496            xns : Roo.bootstrap,
497            '|xns' : 'Roo.bootstrap'
498           }
499          ]
500         }
501        ]
502       },
503       {
504        xtype : 'Container',
505        cls : 'doc-table-container',
506        expandable : true,
507        expanded : true,
508        header : _this._strings['50f33d14f129e4548c1c270fd6725a78'] /* Configuration options */,
509        panel : 'primary',
510        style : 'margin-top:15px',
511        listeners : {
512         render : function (_self)
513          {
514              _this.configTableContainer = this;
515          }
516        },
517        xns : Roo.bootstrap,
518        '|xns' : 'Roo.bootstrap',
519        items  : [
520         {
521          xtype : 'Table',
522          rowSelection : true,
523          striped : true,
524          listeners : {
525           render : function (_self)
526            {
527                _this.configTable = this;
528            },
529           rowclass : function (_self, rowcfg)
530            {
531                  rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';
532                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
533            },
534           rowclick : function (_self, el, rowIndex, e)
535            {
536                if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
537                    return false;
538                }
539                
540                var r = this.store.getAt(rowIndex);
541                r.json.expanded = !r.json.expanded ;
542                this.refreshRow(r);
543            }
544          },
545          xns : Roo.bootstrap,
546          '|xns' : 'Roo.bootstrap',
547          store : {
548           xtype : 'Store',
549           xns : Roo.data,
550           '|xns' : 'Roo.data',
551           proxy : {
552            xtype : 'MemoryProxy',
553            xns : Roo.data,
554            '|xns' : 'Roo.data'
555           },
556           reader : {
557            xtype : 'ArrayReader',
558            fields : [ 'name', 'type', 'desc', 'memberOf' ],
559            xns : Roo.data,
560            '|xns' : 'Roo.data'
561           }
562          },
563          cm : [
564           {
565            xtype : 'ColumnModel',
566            dataIndex : 'name',
567            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
568            md : 11,
569            renderer : function(v,x,r) { 
570            
571                return Roo.docs.template.config(r.json);
572            
573                                 
574            },
575            xns : Roo.grid,
576            '|xns' : 'Roo.grid'
577           },
578           {
579            xtype : 'ColumnModel',
580            dataIndex : 'memberOf',
581            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
582            md : 1,
583            renderer : function(v,x,r) { 
584             if (r.json.memberOf  == Roo.docs.init.currentClass) {
585                        return '';
586                    }
587            
588                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
589                                 
590            },
591            xs : 0,
592            xns : Roo.grid,
593            '|xns' : 'Roo.grid'
594           }
595          ]
596         }
597        ]
598       },
599       {
600        xtype : 'Container',
601        cls : 'doc-table-container',
602        expandable : true,
603        expanded : true,
604        header : _this._strings['a1d108496af420635536a4e29e87d42b'] /* Constructor, Static and Public Methods */,
605        panel : 'primary',
606        listeners : {
607         render : function (_self)
608          {
609              _this.methodsTableContainer = this;
610          }
611        },
612        xns : Roo.bootstrap,
613        '|xns' : 'Roo.bootstrap',
614        items  : [
615         {
616          xtype : 'Table',
617          rowSelection : true,
618          listeners : {
619           render : function (_self)
620            {
621                _this.methodsTable = this;
622            },
623           rowclass : function (_self, rowcfg)
624            {
625                  var j = rowcfg.record.json;
626                  var rc = j.memberOf == Roo.docs.init.currentClass || j.isConstructor ? 'doc-added-member '  : 'doc-not-member ';
627                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
628            },
629           rowclick : function (_self, el, rowIndex, e)
630            {
631                  if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
632                    return false;
633                }
634                 var r = this.store.getAt(rowIndex);
635                r.json.expanded = !r.json.expanded ;
636                this.refreshRow(r);
637            }
638          },
639          xns : Roo.bootstrap,
640          '|xns' : 'Roo.bootstrap',
641          store : {
642           xtype : 'Store',
643           sortInfo : { field : 'name', direction : 'ASC' },
644           xns : Roo.data,
645           '|xns' : 'Roo.data',
646           proxy : {
647            xtype : 'MemoryProxy',
648            xns : Roo.data,
649            '|xns' : 'Roo.data'
650           },
651           reader : {
652            xtype : 'ArrayReader',
653            fields : [ 'name', 'type', 'desc', 'memberOf' ],
654            xns : Roo.data,
655            '|xns' : 'Roo.data'
656           }
657          },
658          cm : [
659           {
660            xtype : 'ColumnModel',
661            dataIndex : 'name',
662            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*   */,
663            md : 11,
664            renderer : function(v,x,r) { 
665            
666                return Roo.docs.template.method(r.json);
667                          
668                                 
669            },
670            sortable : false,
671            xns : Roo.grid,
672            '|xns' : 'Roo.grid'
673           },
674           {
675            xtype : 'ColumnModel',
676            dataIndex : 'memberOf',
677            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
678            md : 1,
679            renderer : function(v,x,r) { 
680            
681             if (r.json.memberOf  == Roo.docs.init.currentClass) {
682                        return '';
683                    }
684                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
685                                 
686            },
687            xs : 0,
688            xns : Roo.grid,
689            '|xns' : 'Roo.grid'
690           }
691          ]
692         }
693        ]
694       },
695       {
696        xtype : 'Container',
697        cls : 'doc-table-container',
698        expandable : true,
699        expanded : true,
700        header : _this._strings['87f9f735a1d36793ceaecd4e47124b63'] /* Events */,
701        panel : 'primary',
702        listeners : {
703         render : function (_self)
704          {
705              _this.eventsTableContainer   = this;
706          }
707        },
708        xns : Roo.bootstrap,
709        '|xns' : 'Roo.bootstrap',
710        items  : [
711         {
712          xtype : 'Table',
713          rowSelection : true,
714          listeners : {
715           render : function (_self)
716            {
717                _this.eventsTable = this;
718            },
719           rowclass : function (_self, rowcfg)
720            {
721                  rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';
722                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
723            },
724           rowclick : function (_self, el, rowIndex, e)
725            {
726                    if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
727                    return false;
728                }
729                var r = this.store.getAt(rowIndex);
730                r.json.expanded = !r.json.expanded ;
731                this.refreshRow(r);
732            }
733          },
734          xns : Roo.bootstrap,
735          '|xns' : 'Roo.bootstrap',
736          store : {
737           xtype : 'Store',
738           xns : Roo.data,
739           '|xns' : 'Roo.data',
740           proxy : {
741            xtype : 'MemoryProxy',
742            xns : Roo.data,
743            '|xns' : 'Roo.data'
744           },
745           reader : {
746            xtype : 'ArrayReader',
747            fields : [ 'name', 'type', 'desc', 'memberOf' ],
748            xns : Roo.data,
749            '|xns' : 'Roo.data'
750           }
751          },
752          cm : [
753           {
754            xtype : 'ColumnModel',
755            dataIndex : 'name',
756            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
757            md : 11,
758            renderer : function(v,x,r) { 
759            
760                return Roo.docs.template.event(r.json);
761                          
762                                 
763            },
764            xns : Roo.grid,
765            '|xns' : 'Roo.grid'
766           },
767           {
768            xtype : 'ColumnModel',
769            dataIndex : 'memberOf',
770            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
771            md : 1,
772            renderer : function(v,x,r) { 
773                    if (r.json.memberOf  == Roo.docs.init.currentClass) {
774                        return '';
775                    }
776            
777                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
778                                 
779            },
780            xs : 0,
781            xns : Roo.grid,
782            '|xns' : 'Roo.grid'
783           }
784          ]
785         }
786        ]
787       }
788      ]
789     }
790    ]
791   };  }
792 });