Skip to main content

Class: NavSources<T>

Holds the available Nav Sources that NavIndicators can use.

Type parameters

NameType
Textends readonly string[]

Implements

  • Instrument

Constructors

constructor

new NavSources<T>(...sources): NavSources<T>

NavSources constructor.

Type parameters

NameType
Textends readonly string[]

Parameters

NameTypeDescription
...sourcesreadonly NavSourceBase<T>[]The nav sources.

Returns

NavSources<T>

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavSources/NavSourceBase.ts:33

Methods

get

get(name): NavSourceBase<T>

Gets a nav source.

Parameters

NameTypeDescription
nameT[number]Name of source.

Returns

NavSourceBase<T>

The source.

Throws

Error if name not found.

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavSources/NavSourceBase.ts:52


init

init(): void

Returns

void

Inherit Doc

Implementation of

Instrument.init

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavSources/NavSourceBase.ts:38


onUpdate

onUpdate(): void

Returns

void

Inherit Doc

Implementation of

Instrument.onUpdate

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavSources/NavSourceBase.ts:43