is it possible to use dataMap (or any other methods/configs) to use dataItem.record.data.someKey value as dataItem.cls?
something like:
Code:
config: {
cls: ['some-class'],
dataMap: {
getCls: {
// addCls using "someKey" value
}
}
}
thanks in advance!
update: problem solved!
I managed to do this using the initialize method.
here is how it ended:
Code:
initialize: function() {
this.callParent();
this.addCls([this.getRecord().data.someKey]);
//considering someKey value is a string
}
that's all.
hope it helps someone.