We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.dom.
Package com.vaadin.flow.dom
Class StyleUtil
java.lang.Object
com.vaadin.flow.dom.StyleUtil
Utility methods for Style
.
Since:
1.0
Author:
Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
styleAttributeToProperty
(String attributeStyle) Converts the given attribute style (dash-separated) into a property style (camelCase).
static String
stylePropertyToAttribute
(String propertyStyle) Converts the given property style (camelCase) into a attribute style (dash-separated).
-
Method Details
-
styleAttributeToProperty
Converts the given attribute style (dash-separated) into a property style (camelCase).
Parameters:
attributeStyle
- the attribute styleReturns:
the property style
-
stylePropertyToAttribute
Converts the given property style (camelCase) into a attribute style (dash-separated).
Parameters:
propertyStyle
- the property styleReturns:
the attribute style
-