PartGrid.js (487B)
1 Ext.define("PartKeepr.Components.Part.PartGrid", { 2 extend: "Ext.grid.Grid", 3 4 xtype: 'PartGrid', 5 6 store: { 7 type: 'PartStore' 8 }, 9 10 plugins: { 11 type: 'pagingtoolbar' 12 }, 13 14 columns: [{ 15 text: i18n("Name"), 16 dataIndex: 'name', 17 flex: 1, 18 minWidth: 150 19 }], 20 listeners: { 21 itemtap: function (view, index, target, part) { 22 this.up("PartPanel").getController().showPartDetails(part); 23 } 24 } 25 });