Represents the class attribute for an HTML tag.
class
Creates a new TagClass instance.
TagClass
Optional
The initial value of the class attribute.
Private
Readonly
The value of the class.
Returns the number of class names in the class attribute.
The number of class names in the class attribute.
Adds one or more class names to the class attribute.
Rest
One or more class names to add.
Removes all class names from the class attribute.
Checks whether the class attribute contains a class name.
The class name to check.
true if the class attribute contains the class name, otherwise false.
true
false
Removes one or more class names from the class attribute.
One or more class names to remove.
Returns a CSS selector string for the class attribute.
A CSS selector string for the class attribute.
Returns a string representation of the class attribute.
A string representation of the class attribute.
Generated using TypeDoc
Represents the
class
attribute for an HTML tag.