Skip to main content

Class: CASDisplay<T>

Defined in: src/garminsdk/components/cas/CAS.tsx:58

A component for displaying CAS messages.

Extends​

Type Parameters​

Type Parameter
T extends CASProps

Constructors​

Constructor​

new CASDisplay<T>(props): CASDisplay<T>

Defined in: src/sdk/components/FSComponent.ts:76

Creates an instance of a DisplayComponent.

Parameters​

ParameterTypeDescription
propsTThe propertis of the component.

Returns​

CASDisplay<T>

Inherited from​

DisplayComponent.constructor

Properties​

context?​

optional context: [] = undefined

Defined in: src/sdk/components/FSComponent.ts:67

The context on this component, if any.

Inherited from​

DisplayComponent.context


contextType?​

readonly optional contextType: readonly [] = undefined

Defined in: src/sdk/components/FSComponent.ts:70

The type of context for this component, if any.

Inherited from​

DisplayComponent.contextType


props​

props: T & ComponentProps

Defined in: src/sdk/components/FSComponent.ts:64

The properties of the component.

Inherited from​

DisplayComponent.props


topAlertIndex​

protected topAlertIndex: number = 0

Defined in: src/garminsdk/components/cas/CAS.tsx:68

The index of the message that is currently displayed in the top (first) slot.

Methods​

addAnnunciation()​

protected addAnnunciation(idx, item): void

Defined in: src/garminsdk/components/cas/CAS.tsx:181

Add an annunciation to the active list.

Parameters​

ParameterTypeDescription
idxnumberThe index of the annunciations array for the annunciation.
itemCasActiveMessageThe annunciation configuration to add

Returns​

void


destroy()​

destroy(): void

Defined in: src/garminsdk/components/cas/CAS.tsx:364

Destroys this component.

Returns​

void

Overrides​

DisplayComponent.destroy


getContext()​

protected getContext(context): never

Defined in: src/sdk/components/FSComponent.ts:109

Gets a context data subscription from the context collection.

Parameters​

ParameterTypeDescription
contextneverThe context to get the subscription for.

Returns​

never

The requested context.

Throws​

An error if no data for the specified context type could be found.

Inherited from​

DisplayComponent.getContext


onAfterRender()​

onAfterRender(): void

Defined in: src/garminsdk/components/cas/CAS.tsx:77

A callback that is called after the component is rendered.

Returns​

void

Overrides​

DisplayComponent.onAfterRender


onBeforeRender()​

onBeforeRender(): void

Defined in: src/sdk/components/FSComponent.ts:83

A callback that is called before the component is rendered.

Returns​

void

Inherited from​

DisplayComponent.onBeforeRender


removeAnnunciation()​

protected removeAnnunciation(idx, item): void

Defined in: src/garminsdk/components/cas/CAS.tsx:211

Remove an annunciation from the active list if present.

Parameters​

ParameterTypeDescription
idxnumberThe index of the annunciations array for the annunciation.
itemCasActiveMessageThe item that's being removed.

Returns​

void


render()​

render(): VNode

Defined in: src/garminsdk/components/cas/CAS.tsx:356

Renders the component.

Returns​

VNode

A JSX element to be rendered.

Overrides​

DisplayComponent.render


scrollDown()​

scrollDown(): void

Defined in: src/garminsdk/components/cas/CAS.tsx:336

Scroll the message window down.

Returns​

void


scrollUp()​

scrollUp(): void

Defined in: src/garminsdk/components/cas/CAS.tsx:347

Scroll the message window up.

Returns​

void


updateDisplayedAnnunciations()​

protected updateDisplayedAnnunciations(): void

Defined in: src/garminsdk/components/cas/CAS.tsx:275

Update the displayed divs with current annunciation status.

Returns​

void