Skip to main content

Class: NavDataFieldNumberUnitRenderer<T>

Renders Distance to Waypoint navigation data fields.

Type parameters

NameType
Textends NumberUnitNavDataFieldTypes

Implements

Constructors

constructor

new NavDataFieldNumberUnitRenderer<T>(options): NavDataFieldNumberUnitRenderer<T>

Creates a new instance of NavDataFieldNumberUnitRenderer.

Type parameters

NameType
Textends AboveGroundLevel | BearingToWaypoint | CabinAltitude | ClimbGradientPerDistance | DensityAltitude | DistanceToWaypoint | DistanceToDestination | DesiredTrack | FuelEconomy | Endurance | TimeToDestination | TimeToWaypoint | EstimatedTimeToVnav | FuelFlow | FlightLevel | FuelOnBoard | FuelOverDestination | GpsAltitude | GroundSpeed | ISA | OutsideTemperature | RamAirTemperature | TrueAirspeed | TrackAngleError | GroundTrack | FuelUsed | VerticalSpeedRequired | CrossTrack

Parameters

NameTypeDescription
optionsReadonly<NavDataFieldNumberUnitRendererOptions<TypeOfNavDataFieldModel<NavDataFieldTypeModelMap[T]>>>Options with which to configure the renderer.

Returns

NavDataFieldNumberUnitRenderer<T>

Defined in

src/garminsdk/components/navdatafield/NavDataFieldTypeRenderers.tsx:42

Properties

options

Protected Readonly options: Readonly<NavDataFieldNumberUnitRendererOptions<TypeOfNavDataFieldModel<NavDataFieldTypeModelMap[T]>>>

Options with which to configure the renderer.

Defined in

src/garminsdk/components/navdatafield/NavDataFieldTypeRenderers.tsx:43

Methods

render

render(model): VNode

Renders a navigation data field of this renderer's data field type.

Parameters

NameTypeDescription
modelNavDataFieldTypeModelMap[T]The data model to use for the data field.

Returns

VNode

A navigation data field of this renderer's data field type, as a VNode.

Implementation of

NavDataFieldTypeRenderer.render

Defined in

src/garminsdk/components/navdatafield/NavDataFieldTypeRenderers.tsx:48