add_class

Widget.add_class(className)

Adds a class to the top level element of the widget.

Doesn’t add the class if it already exists.