Class: Container

EFB Instance

 

Methods

 

loadCss

loadCss(uri): Promise<void>

Load stylesheet

 

Parameters
Name Type
uri string

 

Returns

Promise<void>

Promise which is resolved when stylesheet is loaded or rejected if an error occur.

 


 

loadJs

loadJs(uri): Promise<void>

Load script file

 

Parameters
Name Type
uri string

 

Returns

Promise<void>

Promise which is resolved when script is loaded or rejected if an error occur.

 


 

use

use<T>(app, ...options): this

Register an app in EFB

 

Type parameters
Name Type Description
T extends object = object App registration options

 

Parameters
Name Type Description
app AppConstructor<T> | App<T> The app you wan't to register
...options Partial<T>[] Options you'r app might need when installing

 

Returns

this

EFB instance

Throws

Throw an error if App install went wrong.