Class: NavDataFieldDurationRenderer<T>
Renders navigation data fields which display a duration value.
Type parameters
Name | Type |
---|---|
T | extends DurationNavDataFieldTypes |
Implements
Constructors
constructor
• new NavDataFieldDurationRenderer<T
>(options
): NavDataFieldDurationRenderer
<T
>
Creates a new instance of NavDataFieldDurationRenderer.
Type parameters
Name | Type |
---|---|
T | extends Endurance | TimeToDestination | TimeToWaypoint | EstimatedTimeToVnav |
Parameters
Name | Type | Description |
---|---|---|
options | Readonly <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
Name | Type | Description |
---|---|---|
model | NavDataFieldTypeModelMap [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