You could use widget,setstyleName("MysytleClassName"); where you can give
style name for that widget
On Tue, Nov 16, 2010 at 6:26 PM, MickeyR <[email protected]> wrote:
> Hi,
>
> Can anyone help me to change the value of a class at runtime. So, for
> example, I have a css class that I apply to certain objects:-
>
> .highlight {color: blue;}
>
> And at runtime I would like to change the 'color' attribute of this
> class. So effectively making this:-
>
> .highlight { color: yellow;}
>
> I want to use something similar to this javascript this function:-
> changecss(theClass,element,value)
>
> Or can anyone suggest how I can use that javascript function ? I tried
> this, but it failed:-
>
> private native void changeCSS() /*-{
> $doc.changecss('.highlight','color','yellow');
> }-*/;
>
>
> Thanks in advance,
> Martin.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
*Regards
Suresh Babu G*
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.