Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Methods

addRule

  • addRule(id: string, selector: string, style: Partial<CSSStyleDeclaration>): undefined | string
  • 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 undefined | string

    the id again

deleteRule

  • deleteRule(id: string): void

destroy

  • destroy(): void

updateRule

  • updateRule(id: string, selector: string, style: Partial<CSSStyleDeclaration>): undefined | string
  • updates or add a rule, see @addRule

    Parameters

    • id: string

      unique id of the rule for later identification

    • selector: string

      the css selector

    • style: Partial<CSSStyleDeclaration>

      the style attributes

    Returns undefined | string

    the id again