Skip to main content

Class: NavDataFieldBearingRenderer<T>

Renders navigation data fields which display a bearing value.

Type parameters

NameType
Textends BearingNavDataFieldTypes

Implements

Constructors

constructor

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

Creates a new instance of NavDataFieldBearingRenderer.

Type parameters

NameType
Textends BearingToWaypoint | DesiredTrack | GroundTrack

Parameters

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

Returns

NavDataFieldBearingRenderer<T>

Defined in

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

Properties

options

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

Options with which to configure the renderer.

Defined in

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

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