Hi membersound,

1) I think your SuggestBox should have a ui:field attribute

2) then, add a stylename attribute like this ->
styleName="{css.mySuggestBox}". Where mySuggestBox is your css style
directives name for your gwt:SuggestBox.

Also, In UI Visual Designer, just can click on your suggestbox, you have a
little button on properties panel (advanced properties) where you can type
an ui:field name and css properties too.

I hope it help you.

Regards.

Karim Duran



2013/3/10 membersound <[email protected]>

> How can I apply a complete css file to a specific element using UI Binder?
>
> I know the following does not work, as it is missing css.property statement.
> But you get the idea of what I'm trying: replacing all SuggestBox styles
> only for this specific suggestbox with the ones in my CSS file.
>
> <ui:style field="css" src="MySuggestBox.css" />
> <gwt:FlowPanel>
>  <gwt:HTMLPanel>
>   //some other stuff
>   <gwt:SuggestBox styleName="{css}" /> //Error: incomplete field reference
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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.
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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.


Reply via email to