Skip to main content

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

ParameterTypeDescription
baseInstrumentWT21_FMC_Instrumentthe FMC base instrument
fmsWT21Fmsthe FMS

Returns

WT21FmcPageFactory

Overrides

FmcPageFactory.constructor

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

ParameterTypeDescription
pageCtortypeof WT21FmcPagethe page constructor
busEventBusthe event bus
screenWT21FmcScreenthe FMC screen instance
propsUthe props to create this page with
renderCallbackFmcRenderCallbackthe render callback to give to the page

Returns

WT21FmcPage<U>

Overrides

FmcPageFactory.createPage