Skip to main content

Class: NavDataFieldDurationRenderer<T>

Renders navigation data fields which display a duration value.

Type parameters

NameType
Textends DurationNavDataFieldTypes

Implements

Constructors

constructor

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

Creates a new instance of NavDataFieldDurationRenderer.

Type parameters

NameType
Textends Endurance | TimeToDestination | TimeToWaypoint | EstimatedTimeToVnav

Parameters

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

Returns

NavDataFieldDurationRenderer<T>

Defined in

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

Properties

options

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

Options with which to configure the renderer.

Defined in

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

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:138