asDataAttr

fun Scope.asDataAttr()

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

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