Coffeekraken.io 0.0.1

style

Set or remove a css style property on an HTMLElement

Name Type Description Status Default
elm { HTMLElement } The element to process required
styleObj { Object } An object of style to apply required

Return { (Object) } The element applied style

Example

    import style from 'sugarcss/js/dom/style'
style(myCoolHTMLElement, {
        paddingLeft : 20,
        display : null
});

Author : Olivier Bossel olivier.bossel@gmail.com