HTML API
style
Sets a new value for a property on a CSS style declaration object.
Throws an exception when the application cannot find a match for the element or attributes are different. See HTML live edit for further information.
tilepieces.core.htmlMatch.style(element, propertyName, value, priority);
Parameters
- element
- DOM element
- propertyName
- A DOMString representing the CSS property name (hyphen case) to be modified.
- value
- A DOMString containing the new property value. If not specified, treated as the empty string. Note: value must not contain "!important", that should be set using the priority parameter.
- priority
- A DOMString allowing the "important" CSS priority to be set. If not specified, treated as the empty string. The following values are accepted:
- String value
"important"
- Keyword
undefined
- String empty value
""
- String value
Return Value
None.