42c52b8f31427c4725ee01cf05806f5b7629fc1a
[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   '3c81cc62cd8a24b231d0c0db34feda61' :"Implementations",
22   'f561aaf6ef0bf14d4208bb46a4ccb3ad' :"xxx",
23   '9bd81329febf6efe22788e03ddeaf0af' :" Class ",
24   'a1d108496af420635536a4e29e87d42b' :"Constructor, Static and Public Methods",
25   'd41d8cd98f00b204e9800998ecf8427e' :" "
26  },
27
28   part     :  ["docs", "docs" ],
29   order    : '001-Roo.docs',
30   region   : 'center',
31   parent   : false,
32   name     : "unnamed module",
33   disabled : false, 
34   permname : '', 
35   _tree : function(_data)
36   {
37    var _this = this;
38    var MODULE = this;
39    return {
40    xtype : 'Body',
41    cls : 'doc-body',
42    listeners : {
43     render : function (_self)
44      {
45            
46         
47          
48      }
49    },
50    xns : Roo.bootstrap,
51    '|xns' : 'Roo.bootstrap',
52    items  : [
53     {
54      xtype : 'NavSidebar',
55      cls : 'left-menu-sidebar',
56      listeners : {
57       render : function (_self)
58        {
59          _this.sidebar = this;
60          //  this.el.addClass(language);
61            
62        }
63      },
64      xns : Roo.bootstrap,
65      '|xns' : 'Roo.bootstrap',
66      items  : [
67       {
68        xtype : 'NavGroup',
69        activeLookup : function() 
70        { 
71            return;
72            
73            var pathname = window.location.pathname.substring(baseURL.length);
74            
75            if(!pathname.length){
76                return;
77            }
78            
79            if(pathname.match(/^\/Projects/)){
80                pathname = '/Projects';
81            }
82            
83            var lookupPath = function(item)
84            {
85                if(typeof(item.href) == 'undefined' || !item.href.length || item.href == '#'){
86                    return true;
87                }
88                
89                item.el.removeClass('active');
90                
91                var href = item.href.substring(baseURL.length);
92                
93                if(href != pathname){
94                    return true;
95                }
96                
97                item.el.addClass('active');
98                return false;
99                    
100            };
101            
102            var seted = false;
103            
104            Roo.each(_this.navGroup.items, function(i){
105                
106                var s = lookupPath(i);
107                
108                if(!s){
109                    return false;
110                }
111                
112                if(typeof(i.menu) == 'undefined' || !i.menu.items.length){
113                    return;
114                }
115                
116                Roo.each(i.menu.items, function(ii){
117                    
118                    var ss = lookupPath(ii);
119                    
120                    if(!ss){
121                        seted = true;
122                        return false;
123                    }
124                    
125                });
126                
127                if(seted){
128                    return false;
129                }
130                
131            });
132        },
133        autoExpand : function() 
134        { 
135            return;
136            
137            _this.menu_expand = false;
138            
139            var lookupMenu = function(menu, index){
140                
141                if(menu.target == pagedata.page.target){
142                    _this.menu_expand = index + 1;
143                    return;
144                }
145                
146                if(!menu.children.length){
147                    return;
148                }
149                
150                Roo.each(menu.children, function(c){
151                    lookupMenu(c, index);
152                });
153                
154            }
155            
156            Roo.each(pagemenus, function(v, k){
157                
158                lookupMenu(v, k);
159                
160            });
161            
162            if(_this.menu_expand === false){
163                return;
164            }
165            
166            if(typeof(_this.navGroup.items[_this.menu_expand].menu) == 'undefined'){
167                return;
168            }
169            
170            _this.navGroup.items[_this.menu_expand].menu.show(_this.navGroup.items[_this.menu_expand].el, false, false);
171            
172        },
173        listeners : {
174         childrenrendered : function (_self)
175          {
176              _this.navGroup.autoExpand();
177              
178              _this.navGroup.activeLookup();
179          },
180         render : function (_self)
181          {
182              _this.navGroup = this;
183              
184          }
185        },
186        xns : Roo.bootstrap,
187        '|xns' : 'Roo.bootstrap',
188        items  : [
189         {
190          xtype : 'NavItem',
191          active : false,
192          cls : '',
193          style : 'position:fixed;top:0;z-Index:1000;',
194          xns : Roo.bootstrap,
195          '|xns' : 'Roo.bootstrap',
196          items  : [
197           {
198            xtype : 'Link',
199            cls : 'logo',
200            href : '#',
201            preventDefault : true,
202            listeners : {
203             click : function (e)
204              {
205                  document.location.hash = '#';
206              }
207            },
208            xns : Roo.bootstrap,
209            '|xns' : 'Roo.bootstrap'
210           }
211          ]
212         }
213        ]
214       },
215       {
216        xtype : 'Container',
217        cls : 'left-menu-sidebar-options',
218        xns : Roo.bootstrap,
219        '|xns' : 'Roo.bootstrap',
220        items  : [
221         {
222          xtype : 'Row',
223          xns : Roo.bootstrap,
224          '|xns' : 'Roo.bootstrap'
225         }
226        ]
227       }
228      ]
229     },
230     {
231      xtype : 'NavHeaderbar',
232      autohide : true,
233      brand : ' ',
234      brand_href : '#',
235      cls : 'mobile-header-menu',
236      inverse : false,
237      position : 'fixed-top',
238      style : '',
239      listeners : {
240       beforetoggle : function (_self)
241        {
242           // _this.mobileNavGroup.autoExpand(); 
243            
244            
245        },
246       render : function (_self)
247        {
248           
249             _this.navHeaderBar = this;
250            return;
251            /*
252            var body = Roo.select('body', true).first();
253            
254            var mark = {
255                tag: "div",
256                cls:"x-dlg-mask"
257            };
258            
259            this.mask = Roo.DomHelper.append(body, mark, true);
260            
261            var size = body.getSize();
262            this.mask.setSize(size.width, size.height);
263            
264            this.mask.setStyle('z-index', '1029');
265            
266            this.mask.enableDisplayMode("block");
267            this.mask.hide();
268            
269            this.mask.on('click', function(){
270                
271                this.el.select('.navbar-collapse',true).removeClass('in'); 
272                this.mask.hide();
273                
274            }, this);
275            
276            
277            var maxHeight = Roo.lib.Dom.getViewHeight() - this.el.select('.navbar-header', true).first().getHeight();
278            
279            this.el.select('.navbar-collapse', true).first().setStyle('max-height', maxHeight);
280            */
281        }
282      },
283      xns : Roo.bootstrap,
284      '|xns' : 'Roo.bootstrap',
285      items  : [
286       {
287        xtype : 'NavGroup',
288        listeners : {
289         render : function (_self)
290          {
291              _this.mobileNavGroup = this;
292          }
293        },
294        xns : Roo.bootstrap,
295        '|xns' : 'Roo.bootstrap'
296       }
297      ]
298     },
299     {
300      xtype : 'Container',
301      cls : 'general-content-body general-content-intro',
302      listeners : {
303       render : function (_self)
304        {
305               _this.introContainer = this;
306        }
307      },
308      xns : Roo.bootstrap,
309      '|xns' : 'Roo.bootstrap',
310      items  : [
311       {
312        xtype : 'Header',
313        html : _this._strings['9b34238e8113db140b452beec500024b'] /* Roo JS Documentation */,
314        level : 1,
315        listeners : {
316         render : function (_self)
317          {
318              _this.roo_title = this;
319          }
320        },
321        xns : Roo.bootstrap,
322        '|xns' : 'Roo.bootstrap'
323       },
324       {
325        xtype : 'Container',
326        listeners : {
327         render : function (_self)
328          {
329              _this.introBody = this;
330          }
331        },
332        xns : Roo.bootstrap,
333        '|xns' : 'Roo.bootstrap'
334       }
335      ]
336     },
337     {
338      xtype : 'Container',
339      cls : 'general-content-body',
340      listeners : {
341       render : function (_self)
342        {
343            _this.doc_body_content = this;
344        }
345      },
346      xns : Roo.bootstrap,
347      '|xns' : 'Roo.bootstrap',
348      items  : [
349       {
350        xtype : 'Row',
351        style : 'margin: 0px;',
352        xns : Roo.bootstrap,
353        '|xns' : 'Roo.bootstrap',
354        items  : [
355         {
356          xtype : 'Column',
357          md : 9,
358          xns : Roo.bootstrap,
359          '|xns' : 'Roo.bootstrap',
360          items  : [
361           {
362            xtype : 'Container',
363            cls : 'doc-header-container',
364            xns : Roo.bootstrap,
365            '|xns' : 'Roo.bootstrap',
366            items  : [
367             {
368              xtype : 'Header',
369              html : _this._strings['9bd81329febf6efe22788e03ddeaf0af'] /*  Class  */,
370              level : 4,
371              xns : Roo.bootstrap,
372              '|xns' : 'Roo.bootstrap',
373              items  : [
374               {
375                xtype : 'Element',
376                cls : 'doc-classname',
377                html : _this._strings['f561aaf6ef0bf14d4208bb46a4ccb3ad'] /* xxx */,
378                style : 'font-size: 24px;\n    font-weight: bold;',
379                tag : 'span',
380                listeners : {
381                 render : function (_self)
382                  {
383                      _this.doc_name = this
384                  }
385                },
386                xns : Roo.bootstrap,
387                '|xns' : 'Roo.bootstrap'
388               },
389               {
390                xtype : 'Element',
391                cls : 'doc-extends-str',
392                html : _this._strings['ae635f08107a69569e636835f24e6f6f'] /*  extends  */,
393                tag : 'small',
394                listeners : {
395                 render : function (_self)
396                  {
397                      _this.doc_extends_sep = this;
398                  }
399                },
400                xns : Roo.bootstrap,
401                '|xns' : 'Roo.bootstrap',
402                items  : [
403                 {
404                  xtype : 'Link',
405                  cls : 'doc-extends',
406                  html : _this._strings['494a64a432ff6a121e4ab9003c7a0df3'] /* parentcls */,
407                  preventDefault : true,
408                  listeners : {
409                   click : function (e)
410                    {
411                    
412                        if (this.el.dom.innerHTML.length) {
413                            document.location.hash = '#' +  this.el.dom.innerHTML;
414                          
415                        } 
416                    },
417                   render : function (_self)
418                    {
419                        _this.doc_extends = this;
420                    }
421                  },
422                  xns : Roo.bootstrap,
423                  '|xns' : 'Roo.bootstrap'
424                 }
425                ]
426               }
427              ]
428             },
429             {
430              xtype : 'Header',
431              html : _this._strings['3673e725413179fe76f341ed908a5c36'] /* Defined in:  */,
432              level : 5,
433              listeners : {
434               render : function (_self)
435                {
436                    _this.doc_source_row = this;
437                }
438              },
439              xns : Roo.bootstrap,
440              '|xns' : 'Roo.bootstrap',
441              items  : [
442               {
443                xtype : 'Link',
444                cls : 'doc-source',
445                href : '#',
446                html : _this._strings['3673e725413179fe76f341ed908a5c36'] /* Defined in:  */,
447                preventDefault : true,
448                listeners : {
449                 click : function (e)
450                  {
451                      
452                      Roo.log(["click", this]);
453                      if (this.el.dom.innerHTML.length > 0) {
454                          Roo.docs.init.loadSource();
455                      }
456                  },
457                 render : function (_self)
458                  {
459                      _this.doc_source = this;
460                  }
461                },
462                xns : Roo.bootstrap,
463                '|xns' : 'Roo.bootstrap'
464               }
465              ]
466             }
467            ]
468           },
469           {
470            xtype : 'Container',
471            cls : 'doc-desc',
472            html : _this._strings['e64b94523532dbac62df6795a5153f04'] /* doc-desc */,
473            listeners : {
474             render : function (_self)
475              {
476                  _this.doc_desc = this;
477              }
478            },
479            xns : Roo.bootstrap,
480            '|xns' : 'Roo.bootstrap'
481           },
482           {
483            xtype : 'Container',
484            cls : 'doc-comments',
485            hidden : true,
486            html : _this._strings['d2b697ad8e989a6c4592987f22f5bbfc'] /* doc-comments */,
487            xns : Roo.bootstrap,
488            '|xns' : 'Roo.bootstrap'
489           }
490          ]
491         },
492         {
493          xtype : 'Column',
494          md : 3,
495          xns : Roo.bootstrap,
496          '|xns' : 'Roo.bootstrap',
497          items  : [
498           {
499            xtype : 'Container',
500            cls : 'doc-augments',
501            header : _this._strings['3e6ec55e2dff4342e3f25b0b0b988de9'] /* Inheritance tree */,
502            panel : 'primary',
503            listeners : {
504             render : function (_self)
505              {
506                  _this.augments  = this;
507              }
508            },
509            xns : Roo.bootstrap,
510            '|xns' : 'Roo.bootstrap'
511           },
512           {
513            xtype : 'Container',
514            cls : 'doc-augments',
515            header : _this._strings['3c81cc62cd8a24b231d0c0db34feda61'] /* Implementations */,
516            panel : 'primary',
517            listeners : {
518             render : function (_self)
519              {
520                  _this.implementors  = this;
521              }
522            },
523            xns : Roo.bootstrap,
524            '|xns' : 'Roo.bootstrap'
525           }
526          ]
527         }
528        ]
529       },
530       {
531        xtype : 'Container',
532        cls : 'doc-table-container',
533        expandable : true,
534        expanded : true,
535        header : _this._strings['50f33d14f129e4548c1c270fd6725a78'] /* Configuration options */,
536        panel : 'primary',
537        style : 'margin-top:15px',
538        listeners : {
539         render : function (_self)
540          {
541              _this.configTableContainer = this;
542          }
543        },
544        xns : Roo.bootstrap,
545        '|xns' : 'Roo.bootstrap',
546        items  : [
547         {
548          xtype : 'Table',
549          rowSelection : true,
550          striped : true,
551          listeners : {
552           render : function (_self)
553            {
554                _this.configTable = this;
555            },
556           rowclass : function (_self, rowcfg)
557            {
558                  rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';
559                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
560            },
561           rowclick : function (_self, el, rowIndex, e)
562            {
563                if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
564                    return false;
565                }
566                
567                var r = this.store.getAt(rowIndex);
568                r.json.expanded = !r.json.expanded ;
569                this.refreshRow(r);
570            }
571          },
572          xns : Roo.bootstrap,
573          '|xns' : 'Roo.bootstrap',
574          store : {
575           xtype : 'Store',
576           xns : Roo.data,
577           '|xns' : 'Roo.data',
578           proxy : {
579            xtype : 'MemoryProxy',
580            xns : Roo.data,
581            '|xns' : 'Roo.data'
582           },
583           reader : {
584            xtype : 'ArrayReader',
585            fields : [ 'name', 'type', 'desc', 'memberOf' ],
586            xns : Roo.data,
587            '|xns' : 'Roo.data'
588           }
589          },
590          cm : [
591           {
592            xtype : 'ColumnModel',
593            dataIndex : 'name',
594            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
595            md : 11,
596            renderer : function(v,x,r) { 
597            
598                return Roo.docs.template.config(r.json);
599            
600                                 
601            },
602            xns : Roo.grid,
603            '|xns' : 'Roo.grid'
604           },
605           {
606            xtype : 'ColumnModel',
607            dataIndex : 'memberOf',
608            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
609            md : 1,
610            renderer : function(v,x,r) { 
611             if (r.json.memberOf  == Roo.docs.init.currentClass) {
612                        return '';
613                    }
614            
615                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
616                                 
617            },
618            xs : 0,
619            xns : Roo.grid,
620            '|xns' : 'Roo.grid'
621           }
622          ]
623         }
624        ]
625       },
626       {
627        xtype : 'Container',
628        cls : 'doc-table-container',
629        expandable : true,
630        expanded : true,
631        header : _this._strings['a1d108496af420635536a4e29e87d42b'] /* Constructor, Static and Public Methods */,
632        panel : 'primary',
633        listeners : {
634         render : function (_self)
635          {
636              _this.methodsTableContainer = this;
637          }
638        },
639        xns : Roo.bootstrap,
640        '|xns' : 'Roo.bootstrap',
641        items  : [
642         {
643          xtype : 'Table',
644          rowSelection : true,
645          listeners : {
646           render : function (_self)
647            {
648                _this.methodsTable = this;
649            },
650           rowclass : function (_self, rowcfg)
651            {
652                  var j = rowcfg.record.json;
653                  var rc = j.memberOf == Roo.docs.init.currentClass || j.isConstructor ? 'doc-added-member '  : 'doc-not-member ';
654                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
655            },
656           rowclick : function (_self, el, rowIndex, e)
657            {
658                  if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
659                    return false;
660                }
661                 var r = this.store.getAt(rowIndex);
662                r.json.expanded = !r.json.expanded ;
663                this.refreshRow(r);
664            }
665          },
666          xns : Roo.bootstrap,
667          '|xns' : 'Roo.bootstrap',
668          store : {
669           xtype : 'Store',
670           sortInfo : { field : 'name', direction : 'ASC' },
671           xns : Roo.data,
672           '|xns' : 'Roo.data',
673           proxy : {
674            xtype : 'MemoryProxy',
675            xns : Roo.data,
676            '|xns' : 'Roo.data'
677           },
678           reader : {
679            xtype : 'ArrayReader',
680            fields : [ 'name', 'type', 'desc', 'memberOf' ],
681            xns : Roo.data,
682            '|xns' : 'Roo.data'
683           }
684          },
685          cm : [
686           {
687            xtype : 'ColumnModel',
688            dataIndex : 'name',
689            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*   */,
690            md : 11,
691            renderer : function(v,x,r) { 
692            
693                return Roo.docs.template.method(r.json);
694                          
695                                 
696            },
697            sortable : false,
698            xns : Roo.grid,
699            '|xns' : 'Roo.grid'
700           },
701           {
702            xtype : 'ColumnModel',
703            dataIndex : 'memberOf',
704            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
705            md : 1,
706            renderer : function(v,x,r) { 
707            
708             if (r.json.memberOf  == Roo.docs.init.currentClass) {
709                        return '';
710                    }
711                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
712                                 
713            },
714            xs : 0,
715            xns : Roo.grid,
716            '|xns' : 'Roo.grid'
717           }
718          ]
719         }
720        ]
721       },
722       {
723        xtype : 'Container',
724        cls : 'doc-table-container',
725        expandable : true,
726        expanded : true,
727        header : _this._strings['87f9f735a1d36793ceaecd4e47124b63'] /* Events */,
728        panel : 'primary',
729        listeners : {
730         render : function (_self)
731          {
732              _this.eventsTableContainer   = this;
733          }
734        },
735        xns : Roo.bootstrap,
736        '|xns' : 'Roo.bootstrap',
737        items  : [
738         {
739          xtype : 'Table',
740          rowSelection : true,
741          listeners : {
742           render : function (_self)
743            {
744                _this.eventsTable = this;
745            },
746           rowclass : function (_self, rowcfg)
747            {
748                  rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';
749                  rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');
750            },
751           rowclick : function (_self, el, rowIndex, e)
752            {
753                    if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {
754                    return false;
755                }
756                var r = this.store.getAt(rowIndex);
757                r.json.expanded = !r.json.expanded ;
758                this.refreshRow(r);
759            }
760          },
761          xns : Roo.bootstrap,
762          '|xns' : 'Roo.bootstrap',
763          store : {
764           xtype : 'Store',
765           xns : Roo.data,
766           '|xns' : 'Roo.data',
767           proxy : {
768            xtype : 'MemoryProxy',
769            xns : Roo.data,
770            '|xns' : 'Roo.data'
771           },
772           reader : {
773            xtype : 'ArrayReader',
774            fields : [ 'name', 'type', 'desc', 'memberOf' ],
775            xns : Roo.data,
776            '|xns' : 'Roo.data'
777           }
778          },
779          cm : [
780           {
781            xtype : 'ColumnModel',
782            dataIndex : 'name',
783            header : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
784            md : 11,
785            renderer : function(v,x,r) { 
786            
787                return Roo.docs.template.event(r.json);
788                          
789                                 
790            },
791            xns : Roo.grid,
792            '|xns' : 'Roo.grid'
793           },
794           {
795            xtype : 'ColumnModel',
796            dataIndex : 'memberOf',
797            header : _this._strings['f361257612a512f9be2fdc2abfb25aef'] /* <small>Defined by</small> */,
798            md : 1,
799            renderer : function(v,x,r) { 
800                    if (r.json.memberOf  == Roo.docs.init.currentClass) {
801                        return '';
802                    }
803            
804                         return  '<small><a href="#' + r.json.memberOf + '">' + r.json.memberOf + '</a></small>';
805                                 
806            },
807            xs : 0,
808            xns : Roo.grid,
809            '|xns' : 'Roo.grid'
810           }
811          ]
812         }
813        ]
814       }
815      ]
816     }
817    ]
818   };  }
819 });