Skip to main content

Class: G3XNavDataBarFieldModelFactory

A G3X implementation of NavDataBarFieldModelFactory.

Hierarchy

  • DefaultNavDataBarFieldModelFactory

    G3XNavDataBarFieldModelFactory

Constructors

constructor

new G3XNavDataBarFieldModelFactory(bus, gpsValidity, options?): G3XNavDataBarFieldModelFactory

Creates a new instance of G3XNavDataBarFieldModelFactory.

Parameters

NameTypeDescription
busEventBusThe event bus.
gpsValiditySubscribable<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

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/CnsDataBar/CnsDataBarFields/G3XNavDataBarFieldModelFactory.ts:22

Properties

factory

Protected Readonly factory: GenericNavDataBarFieldModelFactory

Inherited from

DefaultNavDataBarFieldModelFactory.factory

Defined in

src/garminsdk/components/navdatabar/DefaultNavDataBarFieldModelFactory.ts:31

Methods

create

create<T>(type): NavDataBarFieldTypeModelMap[T]

Creates a navigation data bar field data model for a given type of field.

Type parameters

NameType
Textends NavDataFieldType

Parameters

NameTypeDescription
typeTA 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

Defined in

src/garminsdk/components/navdatabar/DefaultNavDataBarFieldModelFactory.ts:110