@serenity-is/corelib / toggleClass
Function: toggleClass()
toggleClass(
el,cls,add?):void
Defined in: src/base/html.ts:39
Toggles the class on the element handling spaces like addClass does.
Parameters
el
Element
the element
cls
string
the class to toggle
add?
boolean
if true, the class will be added, if false the class will be removed, otherwise it will be toggled.
Returns
void