setAttribute

open fun setAttribute(@NonNull name: String, @Nullable value: String)

Set attribute.

Parameters

name

Attribute’s name.

value

Attribute’s value or null to remove the attribute.