FlexBoz
FlexBoz

Reputation: 47

Change BorderColor of clicked item (itemrenderer) in List

Hello I want to set the BorderColor of certain Item Renderers (textInput) of a List. By default all have a common border color, but I want for example when clicking in an item to have a red border.

I tried this on a click event in my itemRenderer,

mytextInput.setStyle("color", 0xDDDDDD);

But it does not seem to work.

Any help.

Thx

Upvotes: 0

Views: 630

Answers (1)

Constantiner
Constantiner

Reputation: 14221

As far as you're extending Spark TextInput control all the problems of that kind should be solved using skins. Create custom skin with the border you like.

Upvotes: 1

Related Questions