setAttribute

open override fun setAttribute(key: Key, value: Any)(source)

Sets an attribute with the given key to the given value. If an attribute with the same key already exists, it will be overwritten.

Parameters

key

the key of the attribute

value

the value of the attribute