StylePropertyMapReadOnly

sealed class StylePropertyMapReadOnly : MapLike<ERROR CLASS: Symbol not found for JsString, JsIterable<CSSStyleValue>> , ReadonlySetLike<ERROR CLASS: Symbol not found for JsString> (source)

The StylePropertyMapReadOnly interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. Retrieve an instance of this interface using Element.computedStyleMap().

MDN Reference

Inheritors

Properties

Link copied to clipboard
open override val size: Int

The size read-only property of the StylePropertyMapReadOnly interface returns an unsigned long integer containing the size of the StylePropertyMapReadOnly object.

Functions

Link copied to clipboard
abstract fun entries(): JsIterator<Tuple2<ERROR CLASS: Symbol not found for JsString, JsIterable<CSSStyleValue>>>
Link copied to clipboard
abstract fun forEach(action: (value: JsIterable<CSSStyleValue>, @R|kotlin/ParameterName|(name = String(key)) ERROR CLASS: Symbol not found for JsString) -> Unit)
Link copied to clipboard
fun get(property: String): CSSStyleValue?

The get() method of the StylePropertyMapReadOnly interface returns a CSSStyleValue object for the first value of the specified property.

Link copied to clipboard

The getAll() method of the StylePropertyMapReadOnly interface returns an array of CSSStyleValue objects containing the values for the provided property.

Link copied to clipboard
abstract fun has(key: ERROR CLASS: Symbol not found for JsString): Boolean

open override fun has(key: ERROR CLASS: Symbol not found for JsString): Boolean

The has() method of the StylePropertyMapReadOnly interface indicates whether the specified property is in the StylePropertyMapReadOnly object.

Link copied to clipboard
abstract fun keys(): JsIterator<ERROR CLASS: Symbol not found for JsString>
Link copied to clipboard