Skip to main content

Class: MfdFplPageDataFieldRenderer

A renderer of flight plan data fields for the MFD FPL page.

Constructors

constructor

new MfdFplPageDataFieldRenderer(isCumulative, unitsSettingManager, dateTimeSettingManager): MfdFplPageDataFieldRenderer

Creates a new instance of MfdFplPageDataFieldRenderer.

Parameters

NameTypeDescription
isCumulativebooleanWhether this renderer should render flight plan cumulative data fields instead of flight plan leg data fields.
unitsSettingManagerG3XUnitsUserSettingManagerA manager for display unit user settings.
dateTimeSettingManagerUserSettingManager<DateTimeUserSettingTypes>A manager for date/time user settings.

Returns

MfdFplPageDataFieldRenderer

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/MFD/MainView/Pages/MfdFplPage/DataField/MfdFplPageDataFieldRenderer.tsx:36

Methods

destroy

destroy(): void

Destroys this renderer. After the renderer is destroyed, it can no longer render data fields.

Returns

void

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/MFD/MainView/Pages/MfdFplPage/DataField/MfdFplPageDataFieldRenderer.tsx:154


render

render(dataField): null | VNode

Renders a flight plan data field.

Parameters

NameTypeDescription
dataFieldFlightPlanDataField<FlightPlanDataFieldType>The data field to render.

Returns

null | VNode

The rendered data field, as a VNode, or null if the data field could not be rendered.

Throws

Error if this renderer has been destroyed.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/MFD/MainView/Pages/MfdFplPage/DataField/MfdFplPageDataFieldRenderer.tsx:49