Skip to main content

Interface: NavDataBearingFieldProps<T>

Component props for NavDataBearingField.

Type parameters

NameType
Textends NumberUnitInterface<NavAngleUnitFamily, NavAngleUnit>

Hierarchy

Properties

children

Optional children: DisplayChildren[]

The children of the display component.

Inherited from

NavDataFieldProps.children

Defined in

src/sdk/components/FSComponent.ts:122


class

Optional class: string

CSS class(es) to apply to the root of the component.

Inherited from

NavDataFieldProps.class

Defined in

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


displayUnit

displayUnit: null | NavAngleUnit | Subscribable<null | NavAngleUnit>

A subscribable which provides the display unit type.

Defined in

src/garminsdk/components/navdatafield/NavDataField.tsx:243


formatter

formatter: (number: number) => string

A function which formats numbers.

Type declaration

▸ (number): string

A function which formats numbers.

Parameters
NameType
numbernumber
Returns

string

Defined in

src/garminsdk/components/navdatafield/NavDataField.tsx:246


model

model: NavDataFieldModel<T>

The model data field's data model.

Inherited from

NavDataFieldProps.model

Defined in

src/garminsdk/components/navdatafield/NavDataField.tsx:19


ref

Optional ref: NodeReference<any>

A reference to the display component.

Inherited from

NavDataFieldProps.ref

Defined in

src/sdk/components/FSComponent.ts:125


title

title: string

The title of the data field.

Inherited from

NavDataFieldProps.title

Defined in

src/garminsdk/components/navdatafield/NavDataField.tsx:16


unitFormatter

Optional unitFormatter: (out: [string, string], unit: NavAngleUnit, number: number) => void

A function which formats units. The formatted unit text should be written to the 2-tuple passed to the out parameter, as [bigText, smallText]. bigText and smallText will be rendered into separate <span> elements representing the big and small components of the rendered unit text, respectively. If not defined, then units will be formatted such that bigText is always the degree symbol (°) and smallText is empty for magnetic bearing or 'T' for true bearing.

Type declaration

▸ (out, unit, number): void

A function which formats units. The formatted unit text should be written to the 2-tuple passed to the out parameter, as [bigText, smallText]. bigText and smallText will be rendered into separate <span> elements representing the big and small components of the rendered unit text, respectively. If not defined, then units will be formatted such that bigText is always the degree symbol (°) and smallText is empty for magnetic bearing or 'T' for true bearing.

Parameters
NameType
out[string, string]
unitNavAngleUnit
numbernumber
Returns

void

Defined in

src/garminsdk/components/navdatafield/NavDataField.tsx:255


use360

Optional use360: boolean

Whether to display 360 in place of 0. True by default.

Defined in

src/garminsdk/components/navdatafield/NavDataField.tsx:258