Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Runtime

An object representing the runtime environment in which an editor is running. In particular it allows loading external resources.

Hierarchy

  • Runtime

Index

Constructors

constructor

  • new Runtime(options: Options): Runtime

Properties

ajax

ajax: bluejax.AjaxCall

ajax$

ajax$: bluejax.AjaxCall$

options

options: Options

Methods

resolve

  • resolve(resource: string): Promise<any>
  • Resolve resource references. References may be of the form:

    • String without a URL scheme identifier. Performs an Ajax query with the resource string as-is.

    • indexeddb://v1/database/table/type/key/property Loads from IndexedDB. It opens the database database, looks for the table table, loads the item with primary key key and extracts the value of the property property. (property is optional. When not specified, the whole record will be returned.) The type must have the values number or string determining how key is going to be interpreted. v1 is the version number of the interpretation scheme used.

    Parameters

    • resource: string

    Returns Promise<any>

resolveModules

  • resolveModules(resources: string | string[]): Promise<__type[]>
  • Resolve modules through the underlying module loader.

    Parameters

    • resources: string | string[]

      A single module name or an array of such names.

    Returns Promise<__type[]>

    promise of modules.

resolveToString

  • resolveToString(resource: string): Promise<string>

Generated using TypeDoc