whits
    Preparing search index...

    Class TagClass

    Represents the class attribute for an HTML tag.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Creates a new TagClass instance.

      Parameters

      • Optionalvalue: string | string[] | Set<string>

        The initial value of the class attribute.

      Returns TagClass

    Accessors

    • get size(): number

      Returns the number of class names in the class attribute.

      Returns number

      The number of class names in the class attribute.

    Methods

    • Adds one or more class names to the class attribute.

      Parameters

      • ...value: string[]

        One or more class names to add.

      Returns void

    • Removes all class names from the class attribute.

      Returns void

    • Checks whether the class attribute contains a class name.

      Parameters

      • value: string

        The class name to check.

      Returns boolean

      true if the class attribute contains the class name, otherwise false.

    • Removes one or more class names from the class attribute.

      Parameters

      • ...value: string[]

        One or more class names to remove.

      Returns void

    • Returns a CSS selector string for the class attribute.

      Returns string

      A CSS selector string for the class attribute.

    • Returns a string representation of the class attribute.

      Returns string

      A string representation of the class attribute.