css - Image sprite in inline style? -


i able use image sprites (@sprite) explicitly defining clientbundle sibling cssresource , imageresource accessors. i'm wondering whether using sprite means must have separate .css file. if define styles inline <ui:style>, how known name image accessor use gwt-image:?

answered own question:

<ui:style>    @sprite .panel {       gwt-image: "titlebackground";    } </ui:style>  <ui:image field='titlebackground' src="constants/title-bg.jpg" /> 

the field names of image resources in same template serve names of image accessor functions in generated client bundle.


Comments

Popular posts from this blog

c++ - error: use of deleted function -

delphi - ESC/P programming! -

c# - how to write client side events functions for the combobox items -