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