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