- {
- "xtype" : "Toolbar",
- "$ xns" : "Roo",
- "* prop" : "toolbar",
- "items" : [
- {
- "listeners" : {
- "|render" : "function (_self)\n{\n _this.langtypeCombo = _self;\n}",
- "|select" : "function (combo, record, index)\n{\n _this.langgrid.getDataSource().reload(); \n}"
- },
- "triggerAction" : "all",
- "selectOnFocus" : true,
- "emptyText" : "Select Translation of",
- "displayField" : "lval",
- "valueField" : "lkey",
- "xtype" : "ComboBox",
- "typeAhead" : false,
- "editable" : false,
- "width" : 200,
- "$ xns" : "Roo.form",
- "mode" : "local",
- "items" : [
- {
- "xtype" : "SimpleStore",
- "$ data" : "[\n [ 'l', 'Language Names' ],\n [ 'c', 'Country Names' ],\n [ 'm', 'Currency Names' ]\n]",
- "$ fields" : "['lkey','lval']",
- "$ xns" : "Roo.data",
- "* prop" : "store"
- }
- ]
- },
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.langgridCombo=_self;\n}",
- "select" : "function (combo, record, index)\n{\n _this.langgrid.getDataSource().reload(); \n}"
- },
- "listWidth" : 300,
- "Number pageSize" : 400,
- "triggerAction" : "all",
- "Number minChars" : 2,
- "fieldLabel" : "Language",
- "selectOnFocus" : true,
- "String queryParam" : "query[name_starts]",
- "displayField" : "title",
- "hiddenName" : "language",
- "value" : "",
- "valueField" : "code",
- "xtype" : "ComboBox",
- "allowBlank" : false,
- "typeAhead" : true,
- "editable" : true,
- "width" : 200,
- "$ xns" : "Roo.form",
- "name" : "language_title",
- "qtip" : "Select Language",
- "items" : [
- {
- "listeners" : {
- "beforeload" : "function (_self, options)\n{\n options =options || {};\n options.params =options.params|| {};\n options.params.ltype = 'l';\n options.params.inlang = 'en';\n \n options.params._as_code_and_title = 1;\n \n}"
- },
- "$ Object sortInfo" : "{ field : 'title', direction: 'ASC' }",
- "xtype" : "Store",
- "$ xns" : "Roo.data",
- "* prop" : "store",
- "items" : [
- {
- "$ url" : "baseURL + '/Roo/i18n.php'",
- "xtype" : "HttpProxy",
- "method" : "GET",
- "$ xns" : "Roo.data",
- "* prop" : "proxy"
- },
- {
- "id" : "id",
- "root" : "data",
- "xtype" : "JsonReader",
- "$ xns" : "Roo.data",
- "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'ltype',\n 'type': 'string'\n },\n {\n 'name': 'lkey',\n 'type': 'string'\n },\n {\n 'name': 'inlang',\n 'type': 'string'\n },\n {\n 'name': 'lval',\n 'type': 'string'\n } \n]",
- "* prop" : "reader",
- "totalProperty" : "total"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "xtype" : "ColumnModel",
- "header" : "Code",
- "width" : 50,
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
- "$ xns" : "Roo.grid",
- "Boolean sortable" : true,
- "* prop" : "colModel[]",
- "dataIndex" : "lkey"
- },