Options
All
  • Public
  • Public/Protected
  • All
Menu

System loader API.

Hierarchy

  • LoaderAPI

Index

Methods

createStyleFromPath

  • createStyleFromPath(path: string): Promise<HTMLStyleElement>
  • Creates a style element of a local CSS file.

    Parameters

    • path: string

      The path of the CSS file to load.

    Returns Promise<HTMLStyleElement>

loadStyleAsync

  • loadStyleAsync(url: string): Promise<void>
  • Loads a CSS file into the current session.

    Parameters

    • url: string

      The URL of the CSS file to load.

    Returns Promise<void>

loadTextAsync

  • loadTextAsync(path: string, cache?: boolean): Promise<string>
  • Loads a text file from URL.

    Parameters

    • path: string

      The path of the text file to load.

    • Optional cache: boolean

      Whether to cache this file (default = true).

    Returns Promise<string>

loadlibAsync

  • loadlibAsync(url: string): Promise<void>
  • Loads a JavaScript library.

    Parameters

    • url: string

      The URL of the library to load.

    Returns Promise<void>

Generated using TypeDoc