CSS API

setCssProperty

sets a new value for a property on a CSS style declaration object.

tilepieces.core.setCssProperty(rule, propertyName, value, priority);

Parameters

rule
A CSSRule.
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 ""

Return Value

None.