Friday, March 1, 2013

Re: Is it possible to make css attributes dynamic in java backing class?

Hi,
If you use a cssResource you can use runtime substitution: https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle?hl=es-#Runtime_substitution

On 03/01/2013 10:18 AM, membersound wrote:
Hi,

how can a css attribute made dynamically read from the java backend class?

<ui:style>
 .size {
    width: 100px; //can I get the 100 from java backing and change it dynamically?
 }
<ui:style>

I know I can set the styles programatically from java code and might thereby change the width. But are things like this also possible?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment