Class: WT21FmcPageFactory
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/WT21FmcPageFactory.ts:12
FMC page factory for WT21FmcPage
Extends
Constructors
Constructor
new WT21FmcPageFactory(
baseInstrument
,fms
):WT21FmcPageFactory
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/WT21FmcPageFactory.ts:18
Ctor
Parameters
Parameter | Type | Description |
---|---|---|
baseInstrument | WT21_FMC_Instrument | the FMC base instrument |
fms | WT21Fms | the FMS |
Returns
WT21FmcPageFactory
Overrides
Methods
createPage()
createPage<
U
>(pageCtor
,bus
,screen
,props
,renderCallback
):WT21FmcPage
<U
>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/WT21FmcPageFactory.ts:27
Creates a page of the specified subtype of AbstractFmcPage
Type Parameters
Type Parameter |
---|
U extends null | object |
Parameters
Parameter | Type | Description |
---|---|---|
pageCtor | typeof WT21FmcPage | the page constructor |
bus | EventBus | the event bus |
screen | WT21FmcScreen | the FMC screen instance |
props | U | the props to create this page with |
renderCallback | FmcRenderCallback | the render callback to give to the page |
Returns
WT21FmcPage
<U
>