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