StylePropertyMap

The StylePropertyMap interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.

MDN Reference

Properties

Link copied to clipboard
open override val size: Int

The size read-only property of the containing the size of the StylePropertyMapReadOnly object.

Functions

Link copied to clipboard
fun append(property: String, vararg values: String)

fun append(property: String, vararg values: CSSStyleValue)

The append() method of the StylePropertyMap with the given property.

Link copied to clipboard
fun clear()

The clear() method of the StylePropertyMap interface removes all declarations in the StylePropertyMap.

Link copied to clipboard
fun delete(property: String)

The delete() method of the property.

Link copied to clipboard
Link copied to clipboard
abstract fun forEach(action: (value: JsIterable<CSSStyleValue>, key: JsString) -> Unit)
Link copied to clipboard

fun get(property: String): CSSStyleValue?

The get() method of the object for the first value of the specified property.

Link copied to clipboard

The getAll() method of the ``js-nolint getAll(property) `` - property - : The name of the property to retrieve all values of.

Link copied to clipboard
open override fun has(key: JsString): Boolean

The has() method of the property is in the StylePropertyMapReadOnly object.

Link copied to clipboard
open inline operator fun iterator(): Iterator<Tuple2<JsString, JsIterable<CSSStyleValue>>>
Link copied to clipboard
abstract fun keys(): JsIterator<JsString>
Link copied to clipboard
fun set(property: String, vararg values: String)

fun set(property: String, vararg values: CSSStyleValue)

The set() method of the StylePropertyMap interface changes the CSS declaration with the given property.

Link copied to clipboard