Abstract Class: FmcPageFactory<T>
Defined in: src/sdk/fmc/FmcPageFactory.ts:14
FMC Page factory, used to instantiate pages.
FMC Pages should be instantiated with the required data and objects (FMS instances, avionics-specific utilities, event busses) in instances of subclasses of this type.
Extended by
Type Parameters
| Type Parameter |
|---|
T extends AbstractFmcPage |
Constructors
Constructor
new FmcPageFactory<
T>():FmcPageFactory<T>
Returns
FmcPageFactory<T>
Methods
createPage()
abstractcreatePage<U>(pageCtor,bus,screen,props,renderCallback):T&AbstractFmcPage<U>
Defined in: src/sdk/fmc/FmcPageFactory.ts:24
Creates a page of the specified subtype of AbstractFmcPage
Type Parameters
| Type Parameter |
|---|
U extends null | object |
Parameters
| Parameter | Type | Description |
|---|---|---|
pageCtor | (...args) => T | the page constructor |
bus | EventBus | the event bus |
screen | FmcScreen<T & AbstractFmcPage<U>, any> | the FMC screen instance |
props | U | the props to create this page with |
renderCallback | FmcRenderCallback | the render callback to give to the page |
Returns
T & AbstractFmcPage<U>