Styles

Styles

Source:
Style related functions

Methods

(static) getStyle(el, proptName) → {String}

Source:
Get the computed style for an element's style property
Parameters:
Name Type Description
el Element
proptName String CSS property name
Returns:
Type
String

(static) setStyle(el, proptName, proptVal)

Source:
Set an element's style
Parameters:
Name Type Description
el HTMLElement
proptName String CSS property name
proptVal String CSS property value