com.vaadin.flow.dom.

Class StyleUtil


  • public class StyleUtil
    extends Object

    Utility methods for Style.

    Since:

    1.0

    Author:

    Vaadin Ltd

    • Method Detail

      • styleAttributeToProperty

        public static String styleAttributeToProperty(String attributeStyle)

        Converts the given attribute style (dash-separated) into a property style (camelCase).

        Parameters:

        attributeStyle - the attribute style

        Returns:

        the property style

      • stylePropertyToAttribute

        public static String stylePropertyToAttribute(String propertyStyle)

        Converts the given property style (camelCase) into a attribute style (dash-separated).

        Parameters:

        propertyStyle - the property style

        Returns:

        the attribute style