Class StyleManager

Hierarchy (View Summary)

Constructors

Accessors

Methods

  • add a custom css rule

    Parameters

    • id: string

      unique id of the rule for later identification

    • selector: string

      the css selector

    • style: Partial<CSSStyleDeclaration>

      the style attributes

    Returns null | string

    the id again

  • deletes the given rule by id

    Parameters

    • id: string

      the rule to delete

    Returns void

  • updates or add a rule, see

    Parameters

    • id: string

      unique id of the rule for later identification

    • selector: string

      the css selector

    • style: Partial<CSSStyleDeclaration>

      the style attributes

    Returns null | string

    the id again