开发者

flex custom itemRenderer doesn't use the styles specified

开发者 https://www.devze.com 2022-12-23 02:59 出处:网络
I have a custom item renderer which I use for my DataGrid. The DataGrid has specified selectionColor, rollOverColor and themeColor. The Problem is that the custom item renderer, does ignore those colo

I have a custom item renderer which I use for my DataGrid. The DataGrid has specified selectionColor, rollOverColor and themeColor. The Problem is that the custom item renderer, does ignore those colors, and doesn't give any Feedb开发者_开发技巧ack...

I tried to add the lines:

setStyle("selectionColor", 0xEDF1F7);
setStyle("rollOverColor", 0xE1F5DE);
setStyle("themeColor", 0x3569B0);

But with no effect...

Who can help on that?

Thanks, Markus


Those styles won't apply to the component you are using for your itemRenderer (which you don't mention). They're styles of the DataGrid itself.

So let's say you're using a Canvas. Try setting the backgroundAlpha of the Canvas to 0.0 so that your DataGrid's selection and other colors will show through.

0

精彩评论

暂无评论...
验证码 换一张
取 消