Fix #5654 - roojspacker - get it working as a doc tool...
[roojs1] / docs / Roo.docs.ViewSource.bjs
diff --git a/docs/Roo.docs.ViewSource.bjs b/docs/Roo.docs.ViewSource.bjs
new file mode 100644 (file)
index 0000000..0829563
--- /dev/null
@@ -0,0 +1,45 @@
+{
+ "name" : "Roo.docs.ViewSource",
+ "parent" : "",
+ "title" : "",
+ "path" : "/home/alan/gitlive/roojs1/docs2/Roo.docs.ViewSource.bjs",
+ "permname" : "",
+ "modOrder" : "001",
+ "strings" : {
+  "d3d2e617335f08df83599665eef8a418" : "Close",
+  "89babd10371e21bb9eaf39937de7c656" : "View Source"
+ },
+ "items" : [
+  {
+   "listeners" : {
+    "show" : "function (_self)\n{\n  //  if(_this.data.buttonText){\n    //    _this.acceptBtn.setText(_this.data.buttonText);\n   // }\n    \n      _this.body_ctr.el.dom.innerHTML = _this.data.source;\n     _this.body_ctr.el.dom.scrollTop = 0;\n     _this.dialog.setTitle(\"View Source: \" + _this.data.fname);\n    _this.dialog.el.setStyle('zIndex', '10002');\n    \n}"
+   },
+   "xtype" : "Modal",
+   "Boolean fitwindow" : true,
+   "int max_width" : 900,
+   "$ xns" : "Roo.bootstrap",
+   "String title" : "View Source",
+   "items" : [
+    {
+     "listeners" : {
+      "render" : "function (_self)\n{\n_this.body_ctr = this;\n}"
+     },
+     "xtype" : "Container",
+     "$ xns" : "Roo.bootstrap",
+     "String style" : "width: 100%;overflow:auto;height:100%;"
+    },
+    {
+     "listeners" : {
+      "render" : "function (_self)\n{\n    _this.acceptBtn = this;\n    \n}\n",
+      "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n \n    \n}\n"
+     },
+     "xtype" : "Button",
+     "$ xns" : "Roo.bootstrap",
+     "String html" : "Close",
+     "string weight" : "primary",
+     "* prop" : "buttons[]"
+    }
+   ]
+  }
+ ]
+}
\ No newline at end of file