Skip to main content

Class: NavDataFieldTimeRenderer<T>

Renders navigation data fields which display a time value.

Type parameters

NameType
Textends TimeNavDataFieldTypes

Implements

Constructors

constructor

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

Creates a new instance of NavDataFieldTimeRenderer.

Type parameters

NameType
Textends ClimbGradient | CarbonMonoxide | TimeOfWaypointArrival | GMeter | GlideRatio | LocalTime | TimeOfDestinationArrival | MachNumber | UtcTime

Parameters

NameTypeDescription
optionsReadonly<NavDataFieldTimeRendererOptions>Options with which to configure the renderer.

Returns

NavDataFieldTimeRenderer<T>

Defined in

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

Properties

options

Protected Readonly options: Readonly<NavDataFieldTimeRendererOptions>

Options with which to configure the renderer.

Defined in

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

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