I'm using getClass
to render the icon in the action column.
{
xtype: 'actioncolumn',
id:'actionColumnGridUsers',
width: 30,
hideable: false,
items: ['->',
{
getClass: function (v, meta, rec)
{
if (rec.get('nameUser') != '') return 'icon-edit';
else return 'icon-add';
}
}
}
And the css code:
.icon-add { background-image: url("../images/add.png"); }
.icon-edit { background-image: url("../images/edit.png"); }
The code seems to be correct, but the icon is not shown. What I'm missing?