How to Use CSSInject?

I downloaded CSSInject AddOn but i cannot find the way that how can i use this AddOn to generate Runtime css and apply it on Vaadin Component. Please suggest me some code …

The sample code in Add-ons section don’t works with Vaadin 7… If you have solution, tell me.

Hi,

Sorry for not updating the code examples in the Directory. I will do that now.

Here’s how you use it with the new Extension API:


CSSInject css = new CSSInject(getUI());
css.setStyles("you css goes here");