Class: G3XNavDataBarFieldModelFactory
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarFields/G3XNavDataBarFieldModelFactory.ts:15
A G3X implementation of NavDataBarFieldModelFactory.
Extends
DefaultNavDataBarFieldModelFactory
Constructors
Constructor
new G3XNavDataBarFieldModelFactory(
bus
,gpsValidity
,options?
):G3XNavDataBarFieldModelFactory
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarFields/G3XNavDataBarFieldModelFactory.ts:22
Creates a new instance of G3XNavDataBarFieldModelFactory.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
gpsValidity | Subscribable <NavDataFieldGpsValidity > | The GPS validity state to pass to the models created by the factory. |
options? | Readonly <DefaultNavDataBarFieldModelFactoryOptions > | Options with which to configure the factory. |
Returns
G3XNavDataBarFieldModelFactory
Overrides
DefaultNavDataBarFieldModelFactory.constructor
Properties
factory
protected
readonly
factory:GenericNavDataBarFieldModelFactory
Defined in: src/garminsdk/components/navdatabar/DefaultNavDataBarFieldModelFactory.ts:31
Inherited from
DefaultNavDataBarFieldModelFactory.factory
Methods
create()
create<
T
>(type
):NavDataBarFieldTypeModelMap
[T
]
Defined in: src/garminsdk/components/navdatabar/DefaultNavDataBarFieldModelFactory.ts:110
Creates a navigation data bar field data model for a given type of field.
Type Parameters
Type Parameter |
---|
T extends NavDataFieldType |
Parameters
Parameter | Type | Description |
---|---|---|
type | T | A data bar field type. |
Returns
NavDataBarFieldTypeModelMap
[T
]
A navigation data bar field data model for the given field type.
Throws
Error if an unsupported field type is specified.
Inherited from
DefaultNavDataBarFieldModelFactory.create