Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "inject"

Index

Functions

Const injectStyleSheet

  • injectStyleSheet(css: string, first?: boolean): HTMLStyleElement
  • Injects given CSS string as global stylesheet in DOM head. If first is true, inserts it as first stylesheet, else (default) appends it.

    Returns created style DOM element.

    Parameters

    • css: string

      CSS string

    • Default value first: boolean = false

      true, if prepend to stylesheet list (else append)

    Returns HTMLStyleElement

Generated using TypeDoc