Class StyleManager

Hierarchy (view full)

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

  • 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

    Add Rule