Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StyleManager

Simple utility CSS-in-JS implementation.

Hierarchy

  • StyleManager

Index

Constructors

constructor

  • Initializes a new style manager.

    Parameters

    • instanceNo: number

      instance id.

    Returns StyleManager

Properties

styleSheetRoot

styleSheetRoot: HTMLElement

For cases when you need to add the stylesheet to anything other than document.head (default), set this property before calling show().

Accessors

classNamePrefix

  • get classNamePrefix(): string
  • Prefix used for all internally created CSS classes.

    Returns string

classNamePrefixBase

  • get classNamePrefixBase(): string
  • Static CSS class name used for the wrapper element.

    Returns string

Methods

addClass

addRule

  • Add arbitrary CSS rule

    Parameters

    Returns void

removeStyleSheet

  • removeStyleSheet(): void
  • Returns void

Generated using TypeDoc