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