whits
    Preparing search index...

    Class TagStyle

    Represents the style attribute for an HTML tag.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Creates a new TagStyle instance.

      Parameters

      • Optionalvalue: string | Record<string, string> | Map<string, string>

        The initial value of the style.

      Returns TagStyle

    Accessors

    • get size(): number

      Returns the number of style properties.

      Returns number

      The number of style properties.

    Methods

    • Removes all style properties.

      Returns void

    • Gets a style property.

      Parameters

      • name: string

        The name of the property.

      Returns string | undefined

      The value of the property.

    • Checks whether the style contains a property.

      Parameters

      • name: string

        The name of the property.

      Returns boolean

      true if the style contains the property, otherwise false.

    • Removes a style property.

      Parameters

      • name: string

        The name of the property.

      Returns boolean

    • Sets a style property.

      Parameters

      • Optionalname: string

        The name of the property.

      • Optionalvalue: string

        The value of the property.

      Returns void

    • Returns a string representation of the style.

      Returns string

      A string representation of the style.