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 style- Returns:
- the property style
-
stylePropertyToAttribute
Converts the given property style (camelCase) into a attribute style (dash-separated).- Parameters:
propertyStyle
- the property style- Returns:
- the attribute style
-