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