addClass()

Adds a CSS class to a component.

addClass(Object element, String newClass)

element: Type: Object. The component to apply the class on.

newClass: Type: String. The CSS class to be applied.