Skip to main content

Class: MfdMainPageRegistrar

A record of registered MFD main pages.

Constructors

constructor

new MfdMainPageRegistrar(): MfdMainPageRegistrar

Returns

MfdMainPageRegistrar

Methods

getRegisteredPagesArray

getRegisteredPagesArray(): Readonly<MfdPageDefinition>[]

Gets an array of page definitions registered with this registrar, in ascending order according to the values of their order properties.

Returns

Readonly<MfdPageDefinition>[]

An array of page definitions registered with this registrar, in ascending order according to the values of their order properties.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/MFD/MainView/MfdMainPageRegistrar.ts:46


isPageRegistered

isPageRegistered(key): boolean

Checks if a page is registered with a given key.

Parameters

NameTypeDescription
keystringThe key to check.

Returns

boolean

Whether a page is registered with the specified key.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/MFD/MainView/MfdMainPageRegistrar.ts:18


registerPage

registerPage(pageDef): void

Registers an MFD main page. Registering a page with an existing key will replace the old page registered under that key.

Parameters

NameTypeDescription
pageDefReadonly<MfdPageDefinition>The definition of the page to register.

Returns

void

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/MFD/MainView/MfdMainPageRegistrar.ts:27


unregisterPage

unregisterPage(key): boolean

Unregisters an MFD main page.

Parameters

NameTypeDescription
keystringThe key of the page to unregister.

Returns

boolean

Whether the page with the specified key was successfully unregistered.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/MFD/MainView/MfdMainPageRegistrar.ts:36