Skip to main content

Class: NextGenDisplayUnitNavDataFieldTypeRenderer<T>

An abstract next-generation (NXi, G3000, etc) implementation of NavDataFieldTypeRenderer which supports display unit settings.

Type parameters

NameType
Textends NavDataFieldType

Hierarchy

Implements

Constructors

constructor

new NextGenDisplayUnitNavDataFieldTypeRenderer<T>(unitsSettingManager): NextGenDisplayUnitNavDataFieldTypeRenderer<T>

Constructor.

Type parameters

NameType
Textends NavDataFieldType

Parameters

NameTypeDescription
unitsSettingManagerUnitsUserSettingManager<UnitsUserSettingTypes>A user setting manager for measurement units.

Returns

NextGenDisplayUnitNavDataFieldTypeRenderer<T>

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:41

Properties

unitsSettingManager

Protected Readonly unitsSettingManager: UnitsUserSettingManager<UnitsUserSettingTypes>

A user setting manager for measurement units.

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:41


ALTITUDE_FORMATTER

Static Protected Readonly ALTITUDE_FORMATTER: (number: number) => string

Type declaration

▸ (number): string

Parameters
NameType
numbernumber
Returns

string

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:22


ANGLE_FORMATTER

Static Protected Readonly ANGLE_FORMATTER: (number: number) => string

Type declaration

▸ (number): string

Parameters
NameType
numbernumber
Returns

string

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:23


BEARING_FORMATTER

Static Protected Readonly BEARING_FORMATTER: (number: number) => string

Type declaration

▸ (number): string

Parameters
NameType
numbernumber
Returns

string

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:24


DISTANCE_FORMATTER

Static Protected Readonly DISTANCE_FORMATTER: (number: number) => string

Type declaration

▸ (number): string

Parameters
NameType
numbernumber
Returns

string

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:25


DURATION_OPTIONS

Static Protected Readonly DURATION_OPTIONS: Object

Type declaration

NameType
delimDurationDisplayDelim
formatDurationDisplayFormat
nanStringstring
padnumber

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:30


FUEL_FORMATTER

Static Protected Readonly FUEL_FORMATTER: (number: number) => string

Type declaration

▸ (number): string

Parameters
NameType
numbernumber
Returns

string

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:26


ISA_FORMATTER

Static Protected Readonly ISA_FORMATTER: (number: number) => string

Type declaration

▸ (number): string

Parameters
NameType
numbernumber
Returns

string

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:27


SPEED_FORMATTER

Static Protected Readonly SPEED_FORMATTER: (number: number) => string

Type declaration

▸ (number): string

Parameters
NameType
numbernumber
Returns

string

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:28


TEMPERATURE_FORMATTER

Static Protected Readonly TEMPERATURE_FORMATTER: (number: number) => string

Type declaration

▸ (number): string

Parameters
NameType
numbernumber
Returns

string

Defined in

src/garminsdk/components/navdatafield/NextGenNavDataFieldTypeRenderers.tsx:29

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/NextGenNavDataFieldTypeRenderers.tsx:45