Tuesday, April 17, 2018

Elemental2 - How to set WidthUnionType CSSProperties.width

I'm trying to set set an HTMLElement.style.width property to an arbitrary value but don't know how the API is used. One mechanism I've seen is to use HTMLElement.setAttribute("style", String), but I'd only like to affect the width property. I'm afraid that if I pass a width string (say, "width: 20px") to setAttribute, it would reset/unset all the other style properties.

You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment