The StyleManager class manages styles that are added to the page dynamically.

Hierarchy

  • StyleManager

Properties

styles: Style[] = []

An array of styles that have been added to the page.

Methods

  • Returns the CSS text for all styles that have been added to the page.

    Returns

    • The CSS text for all styles.

    Returns string

  • Checks if a style has already been added to the page.

    Returns

    • true if the style has already been added, false otherwise.

    Parameters

    • style: Style

      The style to check.

    Returns boolean

  • Returns an array of all external styles that have been added to the page.

    Returns

    • An array of all external styles.

    Returns Style[]

Constructors