About Pi Downloads Documentation Plugins Developer Forum Issues

pi.element.attribute.setClass

Summary

Replaces value of className attribute with given value.

Syntax

element.setClass(value);

Example

>>> MyButton.attribute.setClass("Foo Bar");
>>> MyButton.attribute.hasClass("Foo");
true

See Also