setAttribute

fun setAttribute(name: String, value: String?)(source)

sets the attribute name to value, or removes it when value is null; the styles are computed again