On 24 déc, 04:20, vinays <[email protected]> wrote:
> Hi,
>
> Is there a way to add style to a widget and not set? Currently if I
> write
>
> <g:TextBox styleName="mytextbox" />
>
> what it does is(pseudo) :
>
> TextBox t = new TextBox();
> t.setStyleName("mytextbox");
>
> instead what I want is :
>
> t.addStyleName("mytextbox");
>
> If there is a solution I would request GWT team to add it in
> documentation -- would be really helpful.

You're right this is undocumented (AFAIK): <g:TextBox
addStyleNames="mytextbox" />
(note the plural, this is because the attribute value is a list –comma
and/or space separated– of "style names")

--

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.


Reply via email to