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