Skip to main content

Class: NextGenNavDataBarFieldRenderer

A next-generation (NXi, G3000, etc) implementation of NavDataFieldRenderer which supports all navigation data bar field types.

Implements

Constructors

constructor

new NextGenNavDataBarFieldRenderer(unitsSettingManager, dateTimeSettingManager): NextGenNavDataBarFieldRenderer

Constructor.

Parameters

NameTypeDescription
unitsSettingManagerUnitsUserSettingManager<UnitsUserSettingTypes>A display units user setting manager.
dateTimeSettingManagerUserSettingManager<DateTimeUserSettingTypes>A date/time user setting manager.

Returns

NextGenNavDataBarFieldRenderer

Defined in

src/garminsdk/components/navdatabar/NextGenNavDataBarFieldRenderer.ts:27

Properties

renderer

Protected Readonly renderer: GenericNavDataFieldRenderer

Defined in

src/garminsdk/components/navdatabar/NextGenNavDataBarFieldRenderer.ts:20

Methods

render

render<T>(type, model): VNode

Renders a navigation data field of a given type.

Type parameters

NameType
Textends NavDataFieldType

Parameters

NameTypeDescription
typeTA navigation data field type.
modelNavDataFieldTypeModelMap[T]The data model for the field.

Returns

VNode

A navigation data field of the given type, as a VNode.

Throws

Error if an unsupported field type is specified.

Implementation of

NavDataFieldRenderer.render

Defined in

src/garminsdk/components/navdatabar/NextGenNavDataBarFieldRenderer.ts:55