- },
- {
- "listWidth" : 400,
- "triggerAction" : "all",
- "fieldLabel" : "Category",
- "forceSelection" : true,
- "selectOnFocus" : true,
- "pageSize" : 999,
- "displayField" : "name",
- "emptyText" : "Select category",
- "hiddenName" : "category_id",
- "minChars" : 2,
- "valueField" : "id",
- "xtype" : "ComboBox",
- "allowBlank" : false,
- "typeAhead" : true,
- "Boolean alwaysQuery" : true,
- "editable" : false,
- "width" : 200,
- "$ xns" : "Roo.form",
- "name" : "category_id_name",
- "qtip" : "Select category",
- "queryParam" : "",
- "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{fullpath}</b> </div>",
- "loadingText" : "Searching...",
- "items" : [
- {
- "listeners" : {
- "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
- },
- "xtype" : "Store",
- "remoteSort" : true,
- "$ sortInfo" : "{ direction : 'ASC', field: 'seqid' }",
- "$ xns" : "Roo.data",
- "* prop" : "store",
- "items" : [
- {
- "$ url" : "baseURL + '/Roo/category.php'",
- "method" : "GET",
- "xtype" : "HttpProxy",
- "$ xns" : "Roo.data",
- "* prop" : "proxy"
- },
- {
- "id" : "id",
- "root" : "data",
- "xtype" : "JsonReader",
- "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"fullpath\",\"type\":\"string\"}]",
- "$ xns" : "Roo.data",
- "* prop" : "reader",
- "totalProperty" : "total"
- }
- ]
- }
- ]