Options
All
  • Public
  • Public/Protected
  • All
Menu

Simple utility CSS-in-JS implementation.

Hierarchy

  • StyleManager

Index

Constructors

constructor

  • Initializes a new style manager.

    Parameters

    • instanceNo: number

      instance id.

    Returns StyleManager

Properties

settings

settings: IStyleSettings = ...

Holds current UI styles.

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

defaultSettings

fadeInAnimationClassName

  • get fadeInAnimationClassName(): string
  • Returns global fade-in animation class name.

    Returns string

fadeOutAnimationClassName

  • get fadeOutAnimationClassName(): string
  • Returns global fade-out animation class name.

    Returns string

Methods

addClass

  • addClass(styleClass: StyleClass): StyleClass
  • Adds a CSS class declaration.

    Parameters

    • styleClass: StyleClass

      class to add.

    Returns StyleClass

addRule

  • addRule(styleRule: StyleRule): void
  • Add arbitrary CSS rule

    Parameters

    • styleRule: StyleRule

      CSS rule to add.

    Returns void

removeStyleSheet

  • removeStyleSheet(): void
  • Returns void

Generated using TypeDoc