attr

fun attr(key: String, value: Any?)(source)

Adds an attribute with the given key and value.

Parameters

key

The attribute key.

value

The attribute value.