6e6c2dd8b476c4ebc50e3a4a8890574fc1fd6dd2
[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 : 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 : true,
398                  listeners : {
399                   click : function (e)
400                    {
401                    
402                        if (this.el.dom.innerHTML.length) {
403                            document.location.hash = '#' +  this.el.dom.innerHTML;
404                          
405                        } 
406                    },
407                   render : function (_self)
408                    {
409                        _this.doc_extends = this;
410                    }
411                  },
412                  xns : Roo.bootstrap,
413                  '|xns' : 'Roo.bootstrap'
414                 }
415                ]
416               }
417              ]
418             },
419             {
420              xtype : 'Header',
421              html : _this._strings['3673e725413179fe76f341ed908a5c36'] /* Defined in:  */,
422              level : 5,
423              xns : Roo.bootstrap,
424              '|xns' : 'Roo.bootstrap',
425              items  : [
426               {
427                xtype : 'Link',
428                cls : 'doc-source',
429                href : '#',
430                html : _this._strings['3673e725413179fe76f341ed908a5c36'] /* Defined in:  */,
431                preventDefault : true,
432                listeners : {
433                 click : function (e)
434                  {
435                      
436                      Roo.log(["click", this]);
437                      if (this.el.dom.innerHTML.length > 0) {
438                          Roo.docs.init.loadSource();
439                      }
440                  },
441                 render : function (_self)
442                  {
443                      _this.doc_source = this;
444                  }
445                },
446                xns : Roo.bootstrap,
447                '|xns' : 'Roo.bootstrap'
448               }
449              ]
450             }
451            ]
452           },
453           {
454            xtype : 'Container',
455            cls : 'doc-desc',
456            html : _this._strings['e64b94523532dbac62df6795a5153f04'] /* doc-desc */,
457            listeners : {
458             render : function (_self)
459              {
460                  _this.doc_desc = this;
461              }
462            },
463            xns : Roo.bootstrap,
464            '|xns' : 'Roo.bootstrap'
465           },
466           {
467            xtype : 'Container',
468            cls : 'doc-comments',
469            hidden : true,
470            html : _this._strings['d2b697ad8e989a6c4592987f22f5bbfc'] /* doc-comments */,
471            xns : Roo.bootstrap,
472            '|xns' : 'Roo.bootstrap'
473           }
474          ]
475         },
476         {
477          xtype : 'Column',
478          md : 3,
479          xns : Roo.bootstrap,
480          '|xns' : 'Roo.bootstrap',
481          items  : [
482           {
483            xtype : 'Container',
484            cls : 'doc-augments',
485            header : _this._strings['3e6ec55e2dff4342e3f25b0b0b988de9'] /* Inheritance tree */,
486            panel : 'primary',
487            listeners : {
488             render : function (_self)
489              {
490                  _this.augments  = this;
491              }
492            },
493            xns : Roo.bootstrap,
494            '|xns' : 'Roo.bootstrap'
495           }
496          ]
497         }
498        ]
499       },
500       {
501        xtype : 'Container',
502        cls : 'doc-table-container',
503        expandable : true,
504        expanded : true,
505        header : _this._strings['50f33d14f129e4548c1c270fd6725a78'] /* Configuration options */,
506        panel : 'primary',
507        style : 'margin-top:15px',
508        listeners : {
509         render : function (_self)
510          {
511              _this.configTableContainer = this;
512          }
513        },
514        xns : Roo.bootstrap,
515        '|xns' : 'Roo.bootstrap',
516        items  : [
517         {
518          xtype : 'Table',
519          rowSelection : true,
520          striped : true,
521          listeners : {
522           render : function (_self)
523            {
524                _this.configTable = this;
525            },
526           rowclass : function (_self, rowcfg)
527            {
528                  rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';
529                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
530            },
531           rowclick : function (_self, el, rowIndex, e)
532            {
533                if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
534                    return false;
535                }
536                
537                var r = this.store.getAt(rowIndex);
538                r.json.expanded = !r.json.expanded ;
539                this.refreshRow(r);
540            }
541          },
542          xns : Roo.bootstrap,
543          '|xns' : 'Roo.bootstrap',
544          store : {
545           xtype : 'Store',
546           xns : Roo.data,
547           '|xns' : 'Roo.data',
548           proxy : {
549            xtype : 'MemoryProxy',
550            xns : Roo.data,
551            '|xns' : 'Roo.data'
552           },
553           reader : {
554            xtype : 'ArrayReader',
555            fields : [ 'name', 'type', 'desc', 'memberOf' ],
556            xns : Roo.data,
557            '|xns' : 'Roo.data'
558           }
559          },
560          cm : [
561           {
562            xtype : 'ColumnModel',
563            dataIndex : 'name',
564            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
565            md : 11,
566            renderer : function(v,x,r) { 
567            
568                return Roo.docs.template.config(r.json);
569            
570                                 
571            },
572            xns : Roo.grid,
573            '|xns' : 'Roo.grid'
574           },
575           {
576            xtype : 'ColumnModel',
577            dataIndex : 'memberOf',
578            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
579            md : 1,
580            renderer : function(v,x,r) { 
581             if (r.json.memberOf  == Roo.docs.init.currentClass) {
582                        return '';
583                    }
584            
585                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
586                                 
587            },
588            xns : Roo.grid,
589            '|xns' : 'Roo.grid'
590           }
591          ]
592         }
593        ]
594       },
595       {
596        xtype : 'Container',
597        cls : 'doc-table-container',
598        expandable : true,
599        expanded : true,
600        header : _this._strings['a1d108496af420635536a4e29e87d42b'] /* Constructor, Static and Public Methods */,
601        panel : 'primary',
602        listeners : {
603         render : function (_self)
604          {
605              _this.methodsTableContainer = this;
606          }
607        },
608        xns : Roo.bootstrap,
609        '|xns' : 'Roo.bootstrap',
610        items  : [
611         {
612          xtype : 'Table',
613          rowSelection : true,
614          listeners : {
615           render : function (_self)
616            {
617                _this.methodsTable = this;
618            },
619           rowclass : function (_self, rowcfg)
620            {
621                  var j = rowcfg.record.json;
622                  var rc = j.memberOf == Roo.docs.init.currentClass || j.isConstructor ? 'doc-added-member '  : 'doc-not-member ';
623                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
624            },
625           rowclick : function (_self, el, rowIndex, e)
626            {
627                  if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
628                    return false;
629                }
630                 var r = this.store.getAt(rowIndex);
631                r.json.expanded = !r.json.expanded ;
632                this.refreshRow(r);
633            }
634          },
635          xns : Roo.bootstrap,
636          '|xns' : 'Roo.bootstrap',
637          store : {
638           xtype : 'Store',
639           sortInfo : { field : 'name', direction : 'ASC' },
640           xns : Roo.data,
641           '|xns' : 'Roo.data',
642           proxy : {
643            xtype : 'MemoryProxy',
644            xns : Roo.data,
645            '|xns' : 'Roo.data'
646           },
647           reader : {
648            xtype : 'ArrayReader',
649            fields : [ 'name', 'type', 'desc', 'memberOf' ],
650            xns : Roo.data,
651            '|xns' : 'Roo.data'
652           }
653          },
654          cm : [
655           {
656            xtype : 'ColumnModel',
657            dataIndex : 'name',
658            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*   */,
659            md : 11,
660            renderer : function(v,x,r) { 
661            
662                return Roo.docs.template.method(r.json);
663                          
664                                 
665            },
666            sortable : false,
667            xns : Roo.grid,
668            '|xns' : 'Roo.grid'
669           },
670           {
671            xtype : 'ColumnModel',
672            dataIndex : 'memberOf',
673            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
674            md : 1,
675            renderer : function(v,x,r) { 
676            
677             if (r.json.memberOf  == Roo.docs.init.currentClass) {
678                        return '';
679                    }
680                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
681                                 
682            },
683            xns : Roo.grid,
684            '|xns' : 'Roo.grid'
685           }
686          ]
687         }
688        ]
689       },
690       {
691        xtype : 'Container',
692        cls : 'doc-table-container',
693        expandable : true,
694        expanded : true,
695        header : _this._strings['87f9f735a1d36793ceaecd4e47124b63'] /* Events */,
696        panel : 'primary',
697        listeners : {
698         render : function (_self)
699          {
700              _this.eventsTableContainer   = this;
701          }
702        },
703        xns : Roo.bootstrap,
704        '|xns' : 'Roo.bootstrap',
705        items  : [
706         {
707          xtype : 'Table',
708          rowSelection : true,
709          listeners : {
710           render : function (_self)
711            {
712                _this.eventsTable = this;
713            },
714           rowclass : function (_self, rowcfg)
715            {
716                  rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';
717                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
718            },
719           rowclick : function (_self, el, rowIndex, e)
720            {
721                    if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
722                    return false;
723                }
724                var r = this.store.getAt(rowIndex);
725                r.json.expanded = !r.json.expanded ;
726                this.refreshRow(r);
727            }
728          },
729          xns : Roo.bootstrap,
730          '|xns' : 'Roo.bootstrap',
731          store : {
732           xtype : 'Store',
733           xns : Roo.data,
734           '|xns' : 'Roo.data',
735           proxy : {
736            xtype : 'MemoryProxy',
737            xns : Roo.data,
738            '|xns' : 'Roo.data'
739           },
740           reader : {
741            xtype : 'ArrayReader',
742            fields : [ 'name', 'type', 'desc', 'memberOf' ],
743            xns : Roo.data,
744            '|xns' : 'Roo.data'
745           }
746          },
747          cm : [
748           {
749            xtype : 'ColumnModel',
750            dataIndex : 'name',
751            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
752            md : 11,
753            renderer : function(v,x,r) { 
754            
755                return Roo.docs.template.event(r.json);
756                          
757                                 
758            },
759            xns : Roo.grid,
760            '|xns' : 'Roo.grid'
761           },
762           {
763            xtype : 'ColumnModel',
764            dataIndex : 'memberOf',
765            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
766            md : 1,
767            renderer : function(v,x,r) { 
768                    if (r.json.memberOf  == Roo.docs.init.currentClass) {
769                        return '';
770                    }
771            
772                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
773                                 
774            },
775            xns : Roo.grid,
776            '|xns' : 'Roo.grid'
777           }
778          ]
779         }
780        ]
781       }
782      ]
783     }
784    ]
785   };  }
786 });