Class: Container
EFB Instance
Methods
loadCss
▸ loadCss(uri): Promise(opens in a new tab)<void>
Load stylesheet
Parameters
| Name | Type |
|---|---|
uri | string |
Returns
Promise(opens in a new tab)<void>
Promise which is resolved when stylesheet is loaded or rejected if an error occur.
loadJs
▸ loadJs(uri): Promise(opens in a new tab)<void>
Load script file
Parameters
| Name | Type |
|---|---|
uri | string |
Returns
Promise(opens in a new tab)<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(opens in a new tab)<T>[] | Options you’r app might need when installing |
Returns
this
EFB instance
Throws
Throw an error if App install went wrong.