Class: NextGenNavDataBarFieldRenderer
A next-generation (NXi, G3000, etc) implementation of NavDataFieldRenderer which supports all navigation data bar field types.
Implements
Constructors
constructor
• new NextGenNavDataBarFieldRenderer(unitsSettingManager
, dateTimeSettingManager
): NextGenNavDataBarFieldRenderer
Constructor.
Parameters
Name | Type | Description |
---|---|---|
unitsSettingManager | UnitsUserSettingManager <UnitsUserSettingTypes > | A display units user setting manager. |
dateTimeSettingManager | UserSettingManager <DateTimeUserSettingTypes > | A date/time user setting manager. |
Returns
NextGenNavDataBarFieldRenderer
Defined in
src/garminsdk/components/navdatabar/NextGenNavDataBarFieldRenderer.ts:27
Properties
renderer
• Protected
Readonly
renderer: GenericNavDataFieldRenderer
Defined in
src/garminsdk/components/navdatabar/NextGenNavDataBarFieldRenderer.ts:20
Methods
render
▸ render<T
>(type
, model
): VNode
Renders a navigation data field of a given type.
Type parameters
Name | Type |
---|---|
T | extends NavDataFieldType |
Parameters
Name | Type | Description |
---|---|---|
type | T | A navigation data field type. |
model | NavDataFieldTypeModelMap [T ] | The data model for the field. |
Returns
VNode
A navigation data field of the given type, as a VNode.
Throws
Error if an unsupported field type is specified.
Implementation of
Defined in
src/garminsdk/components/navdatabar/NextGenNavDataBarFieldRenderer.ts:55