docs2/Roo.docs.ViewSource.bjs
[roojs1] / docs2 / Roo.docs.ViewSource.bjs
1 {
2  "name" : "Roo.docs.ViewSource",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/roojs1/docs2/Roo.docs.ViewSource.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "c4408d335012a56ff58937d78050efad" : "Accept",
10   "89babd10371e21bb9eaf39937de7c656" : "View Source",
11   "8ae4424e3e8d151789d3bdb669c20e6b" : "<i class='lnr lnr-download'></i> Download"
12  },
13  "items" : [
14   {
15    "listeners" : {
16     "show" : "function (_self)\n{\n  //  if(_this.data.buttonText){\n    //    _this.acceptBtn.setText(_this.data.buttonText);\n   // }\n    \n     \n   \n    \n    _this.dialog.el.setStyle('zIndex', '10002');\n    \n}"
17    },
18    "string fit_content" : true,
19    "xtype" : "Modal",
20    "int max_width" : 900,
21    "$ xns" : "Roo.bootstrap",
22    "String title" : "View Source",
23    "items" : [
24     {
25      "xtype" : "Container",
26      "$ xns" : "Roo.bootstrap",
27      "String style" : "width: 100%;",
28      "items" : [
29       {
30        "xtype" : "Row",
31        "$ xns" : "Roo.bootstrap",
32        "items" : [
33         {
34          "listeners" : {
35           "render" : "function (_self)\n{\n    _this.terms_body = this;\n}"
36          },
37          "Number md" : 12,
38          "String cls" : "document-body-ctn",
39          "xtype" : "Column",
40          "$ xns" : "Roo.bootstrap"
41         }
42        ]
43       }
44      ]
45     },
46     {
47      "listeners" : {
48       "render" : "function (_self)\n{\n    _this.acceptBtn = this;\n    \n}\n",
49       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n\n    if(_this.callback){\n        _this.callback.call(_this);\n    }\n    \n}\n"
50      },
51      "| function disableIt" : "function() \n{ \n    this.setText('Scroll to end before agree');\n    this.disable();\n}",
52      "String cls" : "coba-agree-btn",
53      "xtype" : "Button",
54      "$ xns" : "Roo.bootstrap",
55      "String html" : "Accept",
56      "string weight" : "primary",
57      "* prop" : "buttons[]",
58      "| function enableIt" : "function() \n{\n    this.setText('Agree');\n    \n    if(_this.data.buttonText){\n        this.setText(_this.data.buttonText);\n    }\n    \n    if(_this.data.btnType) {\n        this.setText(this['_'+_this.data.btnType]);\n    }\n    \n    this.enable();\n}"
59     },
60     {
61      "listeners" : {
62       "render" : "function (_self)\n{\n    _this.download_btn = this;\n}",
63       "click" : "function (_self, e)\n{\n    window.open(baseURL+'/Download/Popup/'+_this.data.declaration);\n}\n"
64      },
65      "String cls" : "coba-download-btn",
66      "String weight" : "default",
67      "xtype" : "Button",
68      "$ xns" : "Roo.bootstrap",
69      "String html" : "<i class='lnr lnr-download'></i> Download",
70      "* prop" : "buttons[]"
71     }
72    ]
73   }
74  ]
75 }