Need app-wide CSS constants in GWT

前端 未结 3 1646
情话喂你
情话喂你 2021-02-04 15:53

I\'d like to define some colours as constants in a GWT CssResource, and use those constants throughout my application; but I don\'t know how to do that.

I\'ll tell you w

3条回答
  •  悲哀的现实
    2021-02-04 16:37

    I know this answer might be kind of late but may help someone. I was having the same problem and was able to solve it by adding the following:

    Resources.css().ensureInjected()

    I added it in my factory but tried it in a couple of places and no matter where I put it, it worked.

提交回复
热议问题