9f518325bef309439c1a6e3449ea380acc44b32d
[roojs1] / docs / Roo.docs.bjs
1 {
2  "name" : "Roo.docs",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/roojs1/docs/Roo.docs.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "3e6ec55e2dff4342e3f25b0b0b988de9" : "Inheritance tree",
10   "ae635f08107a69569e636835f24e6f6f" : " extends ",
11   "87f9f735a1d36793ceaecd4e47124b63" : "Events",
12   "d41d8cd98f00b204e9800998ecf8427e" : " ",
13   "9b34238e8113db140b452beec500024b" : "Roo JS Documentation",
14   "50f33d14f129e4548c1c270fd6725a78" : "Configuration options",
15   "e64b94523532dbac62df6795a5153f04" : "doc-desc",
16   "3673e725413179fe76f341ed908a5c36" : "Defined in: ",
17   "d2b697ad8e989a6c4592987f22f5bbfc" : "doc-comments",
18   "f361257612a512f9be2fdc2abfb25aef" : "<small>Defined by</small>",
19   "494a64a432ff6a121e4ab9003c7a0df3" : "parentcls",
20   "f561aaf6ef0bf14d4208bb46a4ccb3ad" : "xxx",
21   "9bd81329febf6efe22788e03ddeaf0af" : " Class ",
22   "a1d108496af420635536a4e29e87d42b" : "Constructor, Static and Public Methods"
23  },
24  "items" : [
25   {
26    "listeners" : {
27     "render" : "function (_self)\n{\n      \n   \n    \n}"
28    },
29    "String cls" : "doc-body",
30    "xtype" : "Body",
31    "$ xns" : "Roo.bootstrap",
32    "items" : [
33     {
34      "listeners" : {
35       "render" : "function (_self)\n{\n  _this.sidebar = this;\n  //  this.el.addClass(language);\n    \n}"
36      },
37      "String cls" : "left-menu-sidebar",
38      "xtype" : "NavSidebar",
39      "$ xns" : "Roo.bootstrap",
40      "items" : [
41       {
42        "listeners" : {
43         "render" : "function (_self)\n{\n    _this.navGroup = this;\n    \n}",
44         "childrenrendered" : "function (_self)\n{\n    _this.navGroup.autoExpand();\n    \n    _this.navGroup.activeLookup();\n}"
45        },
46        "| function activeLookup" : "function() \n{ \n    return;\n    \n    var pathname = window.location.pathname.substring(baseURL.length);\n    \n    if(!pathname.length){\n        return;\n    }\n    \n    if(pathname.match(/^\\/Projects/)){\n        pathname = '/Projects';\n    }\n    \n    var lookupPath = function(item)\n    {\n        if(typeof(item.href) == 'undefined' || !item.href.length || item.href == '#'){\n            return true;\n        }\n        \n        item.el.removeClass('active');\n        \n        var href = item.href.substring(baseURL.length);\n        \n        if(href != pathname){\n            return true;\n        }\n        \n        item.el.addClass('active');\n        return false;\n            \n    };\n    \n    var seted = false;\n    \n    Roo.each(_this.navGroup.items, function(i){\n        \n        var s = lookupPath(i);\n        \n        if(!s){\n            return false;\n        }\n        \n        if(typeof(i.menu) == 'undefined' || !i.menu.items.length){\n            return;\n        }\n        \n        Roo.each(i.menu.items, function(ii){\n            \n            var ss = lookupPath(ii);\n            \n            if(!ss){\n                seted = true;\n                return false;\n            }\n            \n        });\n        \n        if(seted){\n            return false;\n        }\n        \n    });\n}",
47        "xtype" : "NavGroup",
48        "$ xns" : "Roo.bootstrap",
49        "| function autoExpand" : "function() \n{ \n    return;\n    \n    _this.menu_expand = false;\n    \n    var lookupMenu = function(menu, index){\n        \n        if(menu.target == pagedata.page.target){\n            _this.menu_expand = index + 1;\n            return;\n        }\n        \n        if(!menu.children.length){\n            return;\n        }\n        \n        Roo.each(menu.children, function(c){\n            lookupMenu(c, index);\n        });\n        \n    }\n    \n    Roo.each(pagemenus, function(v, k){\n        \n        lookupMenu(v, k);\n        \n    });\n    \n    if(_this.menu_expand === false){\n        return;\n    }\n    \n    if(typeof(_this.navGroup.items[_this.menu_expand].menu) == 'undefined'){\n        return;\n    }\n    \n    _this.navGroup.items[_this.menu_expand].menu.show(_this.navGroup.items[_this.menu_expand].el, false, false);\n    \n}",
50        "items" : [
51         {
52          "Boolean active" : false,
53          "String cls" : "",
54          "xtype" : "NavItem",
55          "$ xns" : "Roo.bootstrap",
56          "String style" : "position:fixed;top:0;z-Index:1000;",
57          "items" : [
58           {
59            "listeners" : {
60             "click" : "function (e)\n{\n    document.location.hash = '#';\n}"
61            },
62            "string href" : "#",
63            "String cls" : "logo",
64            "Boolean preventDefault" : true,
65            "xtype" : "Link",
66            "$ xns" : "Roo.bootstrap"
67           }
68          ]
69         }
70        ]
71       },
72       {
73        "String cls" : "left-menu-sidebar-options",
74        "xtype" : "Container",
75        "$ xns" : "Roo.bootstrap",
76        "items" : [
77         {
78          "xtype" : "Row",
79          "$ xns" : "Roo.bootstrap"
80         }
81        ]
82       }
83      ]
84     },
85     {
86      "listeners" : {
87       "beforetoggle" : "function (_self)\n{\n    _this.navGroup.autoExpand(); \n    \n    _this.navGroup.activeLookup();\n    \n    _this.navHeaderBar.mask.show();\n    \n    if(this.el.select('.navbar-collapse',true).first().hasClass('in')){\n        _this.navHeaderBar.mask.hide();\n        return;\n    }\n}",
88       "render" : "function (_self)\n{\n    return;\n    \n    _this.navHeaderBar = this;\n    \n    this.el.addClass(language); \n    \n    var body = Roo.select('body', true).first();\n    \n    var mark = {\n        tag: \"div\",\n        cls:\"x-dlg-mask\"\n    };\n    \n    this.mask = Roo.DomHelper.append(body, mark, true);\n    \n    var size = body.getSize();\n    this.mask.setSize(size.width, size.height);\n    \n    this.mask.setStyle('z-index', '1029');\n    \n    this.mask.enableDisplayMode(\"block\");\n    this.mask.hide();\n    \n    this.mask.on('click', function(){\n        \n        this.el.select('.navbar-collapse',true).removeClass('in'); \n        this.mask.hide();\n        \n    }, this);\n    \n    \n    var maxHeight = Roo.lib.Dom.getViewHeight() - this.el.select('.navbar-header', true).first().getHeight();\n    \n    this.el.select('.navbar-collapse', true).first().setStyle('max-height', maxHeight);\n    \n}"
89      },
90      "$ String brand_href" : "baseURL + '/'",
91      "String cls" : "mobile-header-menu",
92      "String position" : "fixed-top",
93      "bool autohide" : true,
94      "xtype" : "NavHeaderbar",
95      "Boolean inverse" : false,
96      "$ xns" : "Roo.bootstrap",
97      "String brand" : " ",
98      "String style" : ""
99     },
100     {
101      "listeners" : {
102       "render" : "function (_self)\n{\n       _this.introContainer = this;\n}"
103      },
104      "String cls" : "general-content-body",
105      "xtype" : "Container",
106      "$ xns" : "Roo.bootstrap",
107      "items" : [
108       {
109        "xtype" : "Header",
110        "$ xns" : "Roo.bootstrap",
111        "Number level" : 1,
112        "String html" : "Roo JS Documentation"
113       },
114       {
115        "listeners" : {
116         "render" : "function (_self)\n{\n    _this.introBody = this;\n}"
117        },
118        "xtype" : "Container",
119        "$ xns" : "Roo.bootstrap"
120       }
121      ]
122     },
123     {
124      "listeners" : {
125       "render" : "function (_self)\n{\n    _this.doc_body_content = this;\n}"
126      },
127      "String cls" : "general-content-body",
128      "xtype" : "Container",
129      "$ xns" : "Roo.bootstrap",
130      "items" : [
131       {
132        "xtype" : "Row",
133        "$ xns" : "Roo.bootstrap",
134        "String style" : "margin: 0px;",
135        "items" : [
136         {
137          "Number md" : 9,
138          "xtype" : "Column",
139          "$ xns" : "Roo.bootstrap",
140          "String style" : "padding-left: 0px;",
141          "items" : [
142           {
143            "String cls" : "doc-header-container",
144            "xtype" : "Container",
145            "$ xns" : "Roo.bootstrap",
146            "items" : [
147             {
148              "xtype" : "Header",
149              "$ xns" : "Roo.bootstrap",
150              "Number level" : 4,
151              "String html" : " Class ",
152              "items" : [
153               {
154                "listeners" : {
155                 "render" : "function (_self)\n{\n    _this.doc_name = this\n}"
156                },
157                "String tag" : "span",
158                "String cls" : "doc-classname",
159                "xtype" : "Element",
160                "$ xns" : "Roo.bootstrap",
161                "String html" : "xxx",
162                "String style" : "font-size: 24px;\n    font-weight: bold;"
163               },
164               {
165                "listeners" : {
166                 "render" : "function (_self)\n{\n    _this.doc_extends_sep = this;\n}"
167                },
168                "String tag" : "small",
169                "String cls" : "doc-extends-str",
170                "xtype" : "Element",
171                "$ xns" : "Roo.bootstrap",
172                "String html" : " extends ",
173                "items" : [
174                 {
175                  "listeners" : {
176                   "render" : "function (_self)\n{\n    _this.doc_extends = this;\n}",
177                   "click" : "function (e)\n{\n\n    if (this.el.dom.innerHTML.length) {\n        document.location.hash = '#' +  this.el.dom.innerHTML;\n      \n    } \n}"
178                  },
179                  "String cls" : "doc-extends",
180                  "Boolean preventDefault" : true,
181                  "xtype" : "Link",
182                  "$ xns" : "Roo.bootstrap",
183                  "String html" : "parentcls"
184                 }
185                ]
186               }
187              ]
188             },
189             {
190              "xtype" : "Header",
191              "Number level" : 5,
192              "$ xns" : "Roo.bootstrap",
193              "String html" : "Defined in: ",
194              "items" : [
195               {
196                "listeners" : {
197                 "render" : "function (_self)\n{\n    _this.doc_source = this;\n}",
198                 "click" : "function (e)\n{\n    \n    Roo.log([\"click\", this]);\n    if (this.el.dom.innerHTML.length > 0) {\n        Roo.docs.init.loadSource();\n    }\n}"
199                },
200                "String cls" : "doc-source",
201                "String href" : "#",
202                "Boolean preventDefault" : true,
203                "xtype" : "Link",
204                "$ xns" : "Roo.bootstrap",
205                "String html" : "Defined in: "
206               }
207              ]
208             }
209            ]
210           },
211           {
212            "listeners" : {
213             "render" : "function (_self)\n{\n    _this.doc_desc = this;\n}"
214            },
215            "String cls" : "doc-desc",
216            "xtype" : "Container",
217            "$ xns" : "Roo.bootstrap",
218            "String html" : "doc-desc"
219           },
220           {
221            "String cls" : "doc-comments",
222            "xtype" : "Container",
223            "$ xns" : "Roo.bootstrap",
224            "String html" : "doc-comments",
225            "Boolean hidden" : true
226           }
227          ]
228         },
229         {
230          "Number md" : 3,
231          "xtype" : "Column",
232          "$ xns" : "Roo.bootstrap",
233          "items" : [
234           {
235            "listeners" : {
236             "render" : "function (_self)\n{\n    _this.augments  = this;\n}"
237            },
238            "String header" : "Inheritance tree",
239            "String cls" : "doc-augments",
240            "xtype" : "Container",
241            "String panel" : "primary",
242            "$ xns" : "Roo.bootstrap"
243           }
244          ]
245         }
246        ]
247       },
248       {
249        "listeners" : {
250         "render" : "function (_self)\n{\n    _this.configTableContainer = this;\n}"
251        },
252        "String header" : "Configuration options",
253        "String cls" : "doc-table-container",
254        "Boolean expanded" : true,
255        "xtype" : "Container",
256        "String panel" : "primary",
257        "$ xns" : "Roo.bootstrap",
258        "String style" : "margin-top:15px",
259        "Boolean expandable" : true,
260        "items" : [
261         {
262          "listeners" : {
263           "rowclass" : "function (_self, rowcfg)\n{\n      rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';\n      rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');\n}",
264           "render" : "function (_self)\n{\n    _this.configTable = this;\n}",
265           "rowclick" : "function (_self, el, rowIndex, e)\n{\n    if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {\n        return false;\n    }\n    \n    var r = this.store.getAt(rowIndex);\n    r.json.expanded = !r.json.expanded ;\n    this.refreshRow(r);\n}"
266          },
267          "boolean striped" : true,
268          "xtype" : "Table",
269          "Boolean rowSelection" : true,
270          "$ xns" : "Roo.bootstrap",
271          "items" : [
272           {
273            "String header" : "",
274            "String dataIndex" : "name",
275            "Number md" : 11,
276            "$ Function renderer" : "function(v,x,r) { \n\n    return Roo.docs.template.config(r.json);\n\n\t\t\t\n}",
277            "xtype" : "ColumnModel",
278            "$ xns" : "Roo.grid",
279            "* prop" : "cm[]"
280           },
281           {
282            "String header" : "<small>Defined by</small>",
283            "String dataIndex" : "memberOf",
284            "Number md" : 1,
285            "$ Function renderer" : "function(v,x,r) { \n if (r.json.memberOf  == Roo.docs.init.currentClass) {\n            return '';\n        }\n\n\t\treturn \t'<small><a href=\"#' + r.json.memberOf + '\">' + r.json.memberOf + '</a></small>';\n\t\t\t\n}",
286            "xtype" : "ColumnModel",
287            "$ xns" : "Roo.grid",
288            "* prop" : "cm[]"
289           },
290           {
291            "xtype" : "Store",
292            "$ xns" : "Roo.data",
293            "* prop" : "store",
294            "items" : [
295             {
296              "xtype" : "MemoryProxy",
297              "$ xns" : "Roo.data",
298              "* prop" : "proxy"
299             },
300             {
301              "xtype" : "ArrayReader",
302              "$ fields" : "[ 'name', 'type', 'desc', 'memberOf' ]",
303              "$ xns" : "Roo.data",
304              "* prop" : "reader"
305             }
306            ]
307           }
308          ]
309         }
310        ]
311       },
312       {
313        "listeners" : {
314         "render" : "function (_self)\n{\n    _this.methodsTableContainer = this;\n}"
315        },
316        "String header" : "Constructor, Static and Public Methods",
317        "String cls" : "doc-table-container",
318        "Boolean expanded" : true,
319        "String panel" : "primary",
320        "xtype" : "Container",
321        "$ xns" : "Roo.bootstrap",
322        "Boolean expandable" : true,
323        "items" : [
324         {
325          "listeners" : {
326           "rowclass" : "function (_self, rowcfg)\n{\n      var j = rowcfg.record.json;\n      var rc = j.memberOf == Roo.docs.init.currentClass || j.isConstructor ? 'doc-added-member '  : 'doc-not-member ';\n      rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');\n}",
327           "render" : "function (_self)\n{\n    _this.methodsTable = this;\n}",
328           "rowclick" : "function (_self, el, rowIndex, e)\n{\n      if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {\n        return false;\n    }\n     var r = this.store.getAt(rowIndex);\n    r.json.expanded = !r.json.expanded ;\n    this.refreshRow(r);\n}"
329          },
330          "xtype" : "Table",
331          "Boolean rowSelection" : true,
332          "$ xns" : "Roo.bootstrap",
333          "items" : [
334           {
335            "String header" : " ",
336            "Number md" : 11,
337            "String dataIndex" : "name",
338            "$ Function renderer" : "function(v,x,r) { \n\n    return Roo.docs.template.method(r.json);\n\t\t \n\t\t\t\n}",
339            "xtype" : "ColumnModel",
340            "$ xns" : "Roo.grid",
341            "Boolean sortable" : false,
342            "* prop" : "cm[]"
343           },
344           {
345            "String header" : "<small>Defined by</small>",
346            "Number md" : 1,
347            "String dataIndex" : "memberOf",
348            "$ Function renderer" : "function(v,x,r) { \n\n if (r.json.memberOf  == Roo.docs.init.currentClass) {\n            return '';\n        }\n\t\treturn \t'<small><a href=\"#' + r.json.memberOf + '\">' + r.json.memberOf + '</a></small>';\n\t\t\t\n}",
349            "xtype" : "ColumnModel",
350            "$ xns" : "Roo.grid",
351            "* prop" : "cm[]"
352           },
353           {
354            "$ Object sortInfo" : "{ field : 'name', direction : 'ASC' }",
355            "xtype" : "Store",
356            "$ xns" : "Roo.data",
357            "* prop" : "store",
358            "items" : [
359             {
360              "xtype" : "MemoryProxy",
361              "$ xns" : "Roo.data",
362              "* prop" : "proxy"
363             },
364             {
365              "xtype" : "ArrayReader",
366              "$ fields" : "[ 'name', 'type', 'desc', 'memberOf' ]",
367              "$ xns" : "Roo.data",
368              "* prop" : "reader"
369             }
370            ]
371           }
372          ]
373         }
374        ]
375       },
376       {
377        "listeners" : {
378         "render" : "function (_self)\n{\n    _this.eventsTableContainer   = this;\n}"
379        },
380        "String header" : "Events",
381        "String cls" : "doc-table-container",
382        "Boolean expanded" : true,
383        "xtype" : "Container",
384        "String panel" : "primary",
385        "$ xns" : "Roo.bootstrap",
386        "Boolean expandable" : true,
387        "items" : [
388         {
389          "listeners" : {
390           "rowclass" : "function (_self, rowcfg)\n{\n      rc = rowcfg.record.json.memberOf == Roo.docs.init.currentClass ? 'doc-added-member '  : 'doc-not-member ';\n      rowcfg.rowClass = rc + (rowcfg.record.json.expanded ? 'expanded' : '');\n}",
391           "render" : "function (_self)\n{\n    _this.eventsTable = this;\n}",
392           "rowclick" : "function (_self, el, rowIndex, e)\n{\n        if (e.target.className != 'fixedFont' && e.target.parentNode.className != 'fixedFont') {\n        return false;\n    }\n    var r = this.store.getAt(rowIndex);\n    r.json.expanded = !r.json.expanded ;\n    this.refreshRow(r);\n}"
393          },
394          "xtype" : "Table",
395          "Boolean rowSelection" : true,
396          "$ xns" : "Roo.bootstrap",
397          "items" : [
398           {
399            "String header" : "",
400            "String dataIndex" : "name",
401            "Number md" : 11,
402            "$ Function renderer" : "function(v,x,r) { \n\n    return Roo.docs.template.event(r.json);\n\t\t \n\t\t\t\n}",
403            "xtype" : "ColumnModel",
404            "$ xns" : "Roo.grid",
405            "* prop" : "cm[]"
406           },
407           {
408            "String header" : "<small>Defined by</small>",
409            "String dataIndex" : "memberOf",
410            "Number md" : 1,
411            "$ Function renderer" : "function(v,x,r) { \n        if (r.json.memberOf  == Roo.docs.init.currentClass) {\n            return '';\n        }\n\n\t\treturn \t'<small><a href=\"#' + r.json.memberOf + '\">' + r.json.memberOf + '</a></small>';\n\t\t\t\n}",
412            "xtype" : "ColumnModel",
413            "$ xns" : "Roo.grid",
414            "* prop" : "cm[]"
415           },
416           {
417            "xtype" : "Store",
418            "$ xns" : "Roo.data",
419            "* prop" : "store",
420            "items" : [
421             {
422              "xtype" : "ArrayReader",
423              "$ xns" : "Roo.data",
424              "$ fields" : "[ 'name', 'type', 'desc', 'memberOf' ]",
425              "* prop" : "reader"
426             },
427             {
428              "xtype" : "MemoryProxy",
429              "$ xns" : "Roo.data",
430              "* prop" : "proxy"
431             }
432            ]
433           }
434          ]
435         }
436        ]
437       }
438      ]
439     }
440    ]
441   }
442  ]
443 }