asDataAttr

open fun Scope.asDataAttr()

Sets all scope-entries as data-attributes to the element.


open fun <T : Any> Scope.asDataAttr(key: Scope.Key<T>)

Sets scope-entry for the given key as data-attribute to the element when available.

Parameters

key

key of scope-entry to look for in scope