setProperty(String, String)
can be used to set css properties. But you need to use camel case property names, and GWT will translate it to the real css property name. (The upper case letter, e.g. A, will be tranlated to -a)setProperty("textAlign", "center"); // text-align: center;
for example:
Camel Case Name | CSS Property |
textAlign | text-align |
MozBorderRadiusTopleft | -moz-border-radius-topleft |
borderTopLeftRadius | border-top-left-radius |
See Also: About Camel Case.
No comments:
Post a Comment