sync
[roojs1] / examples / bootstrap / cards.js.bjs
1 {
2  "name" : "cards.js",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/roojs1/examples/bootstrap/cards.js.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "9e727fdd3aec8274f46685441900280d" : "Project",
10   "6a58f977f2b623b695a340766f2a6843" : "Select Project",
11   "1243daf593fa297e07ab03bf06d925af" : "Searching...",
12   "cd81f9f55969c822377f076017bb3484" : "Cards",
13   "24f27bda5dd2c488aa9bc7700ba98c34" : "Select Projects"
14  },
15  "named_strings" : {
16   "project_id_name_emptyText" : "6a58f977f2b623b695a340766f2a6843",
17   "project_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
18   "project_id_name_qtip" : "24f27bda5dd2c488aa9bc7700ba98c34",
19   "project_id_name_fieldLabel" : "9e727fdd3aec8274f46685441900280d"
20  },
21  "items" : [
22   {
23    "listeners" : {
24     "activate" : "function (_self)\n{\n    this.loadCards();\n}",
25     "resize" : "function (_self, width, height)\n{\n     this.cardRow.updateHeight(height);\n}",
26     "render" : "function (_self)\n{\n    _this.content  = this;\n}"
27    },
28    "xtype" : "Content",
29    "bool cardRow" : false,
30    "Boolean fitToFrame" : true,
31    "| function loadCards" : "function() {\n\n   \n    if (this.cardRow == false) {\n        this.cardRow = this.addxtype({\n            xtype : 'CardRow',\n            xns : Pman.Tab.Cards\n        });\n    }\n    this.cardRow.load();\n    (function() { \n        _this.content.cardRow.updateHeight(_this.content.el.getHeight()); \n    }).defer(100);\n\n\n }",
32    "String region" : "center",
33    "$ xns" : "Roo.bootstrap.panel",
34    "String title" : "Cards",
35    "Boolean autoScroll" : true,
36    "items" : [
37     {
38      "xtype" : "NavSimplebar",
39      "$ xns" : "Roo.bootstrap",
40      "* prop" : "toolbar",
41      "items" : [
42       {
43        "xtype" : "NavGroup",
44        "$ xns" : "Roo.bootstrap",
45        "items" : [
46         {
47          "xtype" : "NavItem",
48          "$ xns" : "Roo.bootstrap",
49          "items" : [
50           {
51            "xtype" : "Element",
52            "$ xns" : "Roo.bootstrap",
53            "items" : [
54             {
55              "listeners" : {
56               "render" : "function (_self)\n{\n    _this.projectSel  = this;\n}",
57               "select" : "function (combo, record, index)\n{\n    _this.content.loadCards();\n}"
58              },
59              "listWidth" : 400,
60              "triggerAction" : "all",
61              "Number md" : 5,
62              "forceSelection" : true,
63              "selectOnFocus" : true,
64              "pageSize" : 100,
65              "displayField" : "name",
66              "emptyText" : "Select Project",
67              "hiddenName" : "project_id",
68              "minChars" : 2,
69              "valueField" : "id",
70              "xtype" : "ComboBox",
71              "allowBlank" : false,
72              "typeAhead" : true,
73              "string fieldLabel" : "Project",
74              "editable" : false,
75              "$ xns" : "Roo.bootstrap",
76              "name" : "project_id_name",
77              "qtip" : "Select Projects",
78              "queryParam" : "query[name]",
79              "tpl" : "<a class=\"dropdown-item\" href=\"#\"> {name} </a>",
80              "loadingText" : "Searching...",
81              "items" : [
82               {
83                "listeners" : {
84                 "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
85                },
86                "xtype" : "Store",
87                "remoteSort" : true,
88                "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
89                "$ xns" : "Roo.data",
90                "* prop" : "store",
91                "items" : [
92                 {
93                  "$ url" : "baseURL + '/Roo/core_project'",
94                  "xtype" : "HttpProxy",
95                  "method" : "GET",
96                  "$ xns" : "Roo.data",
97                  "* prop" : "proxy"
98                 },
99                 {
100                  "id" : "id",
101                  "root" : "data",
102                  "xtype" : "JsonReader",
103                  "$ xns" : "Roo.data",
104                  "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
105                  "* prop" : "reader",
106                  "totalProperty" : "total"
107                 }
108                ]
109               }
110              ]
111             }
112            ]
113           }
114          ]
115         }
116        ]
117       }
118      ]
119     }
120    ]
121   }
122  ]
123 }