Class: NavSources<T>
Holds the available Nav Sources that NavIndicators can use.
Type parameters
Name | Type |
---|---|
T | extends readonly string [] |
Implements
Instrument
Constructors
constructor
• new NavSources<T
>(...sources
): NavSources
<T
>
NavSources constructor.
Type parameters
Name | Type |
---|---|
T | extends readonly string [] |
Parameters
Name | Type | Description |
---|---|---|
...sources | readonly 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
Name | Type | Description |
---|---|---|
name | T [number ] | Name of source. |
Returns
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