PDA

View Full Version : How to display icon inside actioncolumn for only records with Boolean value of true?



JackJohnson321
8 Nov 2013, 8:55 AM
thanks!

slemmon
11 Nov 2013, 11:22 PM
Using the getClass method you can evaluate the record and return back a class for the icon background depending on the value in the record/field.
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.column.Action-cfg-getClass

Check out the code preview on the right-hand side of this example page to see the getClass config in use:
http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/build/KitchenSink/ext-theme-neptune/#array-grid