Skip to main content

Interface: G3XBearingDisplayProps

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Common/G3XBearingDisplay.tsx:11

Component props for G3XBearingDisplay.

Extends

  • BearingDisplayProps

Properties

children?

optional children: DisplayChildren[]

Defined in: src/sdk/components/FSComponent.ts:122

The children of the display component.

Inherited from

BearingDisplayProps.children


class?

optional class: string | ToggleableClassNameRecord | SubscribableSet<string>

Defined in: src/garminsdk/components/common/BearingDisplay.tsx:38

CSS class(es) to add to the root of the bearing display component.

Inherited from

BearingDisplayProps.class


displayUnit

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

Defined in: src/garminsdk/components/common/BearingDisplay.tsx:17

The unit type in which to display the value, or a subscribable which provides it. If the unit is null, then the native type of the value is used instead.

Inherited from

BearingDisplayProps.displayUnit


formatter()

formatter: (number) => string

Defined in: src/garminsdk/components/common/BearingDisplay.tsx:20

A function which formats numbers.

Parameters

ParameterType
numbernumber

Returns

string

Inherited from

BearingDisplayProps.formatter


hideDegreeSymbolWhenNan?

optional hideDegreeSymbolWhenNan: boolean

Defined in: src/garminsdk/components/common/BearingDisplay.tsx:35

Whether to hide the unit text when the displayed value is equal to NaN. Defaults to false.

Inherited from

BearingDisplayProps.hideDegreeSymbolWhenNan


ref?

optional ref: NodeReference<any>

Defined in: src/sdk/components/FSComponent.ts:125

A reference to the display component.

Inherited from

BearingDisplayProps.ref


unitFormatter()?

optional unitFormatter: (out, unit, number) => void

Defined in: src/garminsdk/components/common/BearingDisplay.tsx:29

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

ParameterType
out[string, string]
unitNavAngleUnit
numbernumber

Returns

void

Inherited from

BearingDisplayProps.unitFormatter


use360?

optional use360: boolean

Defined in: src/garminsdk/components/common/BearingDisplay.tsx:32

Whether to display '360' in place of '0'. Defaults to true.

Inherited from

BearingDisplayProps.use360


useBasicUnitFormat?

optional useBasicUnitFormat: boolean

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Common/G3XBearingDisplay.tsx:16

Whether to use basic unit text formatting instead of G3X-style unit text formatting. Ignored if unitFormatter is defined. Defaults to false.


value

value: NumberUnitInterface<"navangle", NavAngleUnit> | Subscribable<NumberUnitInterface<"navangle", NavAngleUnit>>

Defined in: src/garminsdk/components/common/BearingDisplay.tsx:11

The NumberUnitInterface value to display, or a subscribable which provides it.

Inherited from

BearingDisplayProps.value