How to reference more than once stylesheets in uibinder?

49 views
Skip to first unread message

Nano Elefant

unread,
Apr 15, 2012, 7:52:13 PM4/15/12
to google-we...@googlegroups.com
Hello,

right now I'm using the following to make a stylesheet available in uibinder.
<ui:style src="../../resources/mystyles.css"/> 
Is there a way to include a second stylesheet?


Aidan O'Kelly

unread,
Apr 15, 2012, 8:02:42 PM4/15/12
to google-we...@googlegroups.com
Yes, you just need to give them field names: 

<ui:style field="secondStyle" .... /> 

'field' defaults to 'style' and that's why you access your css like "{style.someCss}"




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/5yKlvS37rn4J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages