Custom styles, flex

Flex Add comments

I have to change the background of a custom components as the user clicks some areas on the screen… That might be strange, but thats a use case I have to answer.

So, I thought it was time to learn how to set custom styles. I found there arent so many examples (if you consider there is more than one way to do it), so I decided to make this post.

Im not as glad as I wanted: I wanted to use a ClassReference on a css file, but it was throwing an error I couldnt spot. So, I managed to this way: all the style managing logic is inside the custom component’s class.

That’s the exactly the approach Brooks Andrus used.

Check the app here (view source enabled).

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in