Self ng.Element.toggle_class (String cls1, String cls2) vs. 1.1.0 Full+Lite

Toggles between two CSS classes by adding one and removing the other.

Parameters

String cls1 Required vs. 1.1.0 Full+Lite
The first CSS class name.
String cls2 Required vs. 1.1.0 Full+Lite
The second CSS class name.

Return

Self Required vs. 1.1.0 Full+Lite
The original HTML Element.

Examples

Using ng.Element.toggle_class(cls1, cls2)
Demo:
Hello World

API Menu