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