Widget.hasCssClass

Returns whether css_class is currently applied to widget.

class Widget
bool
hasCssClass
(
string cssClass
)

Parameters

cssClass string

A style class, without the leading '.' used for notation of style classes

Return Value

Type: bool

true if css_class is currently applied to widget, false otherwise.