hello im struggling extjs im trying change color in extjs grid cell name 'statuscode' if statuscode 1 cell has change color in green! idea? thanks
ext.define('shopware.apps.articleupdatelog.model.articleupdatelog', { extend: 'shopware.data.model', configure: function () { return { controller: 'articleupdatelog' }; }, fields: [ { name : 'id', type: 'int', usenull: true }, { name : 'importtimestamp', type: 'string' }, { name : 'statuscode', type: 'string', usenull: true }, { name : 'status', type: 'string', usenull: true } ] });
each column of grid has renderer config render: function(value, meta, record)
. can check record.get('status')
current value , add css style given cell.
http://docs.sencha.com/extjs/4.2.2/#!/api/ext.grid.column.column-cfg-renderer
also @ meta paramenter grants access style specific cell want.
Comments
Post a Comment