Coffeekraken.io 0.0.1

styleObject2String

Transform a style object to inline string separated by ;

Name Type Description Status Default
styleObj { Object } An object of style to apply required

Return { (String) } The string style representation

Example

    import styleObject2String from 'sugarcss/js/dom/styleObject2String'
const styleString = styleObject2String({
        paddingLeft : '20px',
        display : 'block'
});
// output => padding-left:20px; display:block;

Author : Olivier Bossel olivier.bossel@gmail.com