From: Alan Date: Thu, 14 Apr 2022 07:16:53 +0000 (+0800) Subject: examples/grid/ArrayGrid.bjs X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=f664cf2efcb4cdb6851795e9924bffb21c593dcc examples/grid/ArrayGrid.bjs examples/grid/ArrayGrid.js --- diff --git a/examples/grid/ArrayGrid.bjs b/examples/grid/ArrayGrid.bjs index 063e2aebea..e17718a299 100644 --- a/examples/grid/ArrayGrid.bjs +++ b/examples/grid/ArrayGrid.bjs @@ -5,6 +5,9 @@ "path" : "/home/alan/gitlive/roojs1/examples/grid/ArrayGrid.bjs", "permname" : "", "modOrder" : "001", + "strings" : { + "1c76cbfe21c6f44c1d1e59d54f3e4420" : "Company" + }, "items" : [ { "xtype" : "GridPanel", @@ -21,6 +24,8 @@ "* prop" : "ds" }, { + "String header" : "Company", + "String dataIndex" : "company", "xtype" : "ColumnModel", "$ xns" : "Roo.grid", "* prop" : "cm[]" diff --git a/examples/grid/ArrayGrid.js b/examples/grid/ArrayGrid.js index 4cc0ab4384..08256f4a12 100644 --- a/examples/grid/ArrayGrid.js +++ b/examples/grid/ArrayGrid.js @@ -4,7 +4,9 @@ ArrayGrid = new Roo.XComponent({ - + _strings : { + '1c76cbfe21c6f44c1d1e59d54f3e4420' :"Company" + }, part : ["grid", "ArrayGrid" ], order : '001-ArrayGrid', @@ -33,6 +35,8 @@ ArrayGrid = new Roo.XComponent({ cm : [ { xtype : 'ColumnModel', + dataIndex : 'company', + header : _this._strings['1c76cbfe21c6f44c1d1e59d54f3e4420'] /* Company */, xns : Roo.grid, '|xns' : 'Roo.grid' }