Skip to main content

Class: TestFPL

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/TestComponent.tsx:10

test component

Extends

  • CollectionComponent<TestFplProps>

Constructors

Constructor

new TestFPL(props): TestFPL

Defined in: sdk/components/FSComponent.ts:73

Creates an instance of a DisplayComponent.

Parameters

ParameterTypeDescription
propsTestFplPropsThe propertis of the component.

Returns

TestFPL

Inherited from

CollectionComponent<TestFplProps>.constructor

Properties

context?

optional context: [] = undefined

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

The context on this component, if any.

Inherited from

CollectionComponent.context


contextType?

readonly optional contextType: readonly [] = undefined

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

The type of context for this component, if any.

Inherited from

CollectionComponent.contextType


props

props: TestFplProps & ComponentProps

Defined in: sdk/components/FSComponent.ts:61

The properties of the component.

Inherited from

CollectionComponent.props

Methods

addItem()

addItem(node): string

Defined in: sdk/components/CollectionComponent.tsx:29

Add a new child element.

Parameters

ParameterTypeDescription
nodeVNodeA VNode to add to the container.

Returns

string

An identifier for the added element.

Inherited from

CollectionComponent.addItem


destroy()

destroy(): void

Defined in: sdk/components/FSComponent.ts:98

Destroys this component.

Returns

void

Inherited from

CollectionComponent.destroy


getContext()

protected getContext(context): never

Defined in: sdk/components/FSComponent.ts:106

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

CollectionComponent.getContext


insertAfter()

insertAfter(node, after): string

Defined in: sdk/components/CollectionComponent.tsx:61

Insert a child after an element.

Parameters

ParameterTypeDescription
nodeVNodeThe node to insert
afterstringThe element to insert after.

Returns

string

An identifier for the added element.

Inherited from

CollectionComponent.insertAfter


insertBefore()

insertBefore(node, before): string

Defined in: sdk/components/CollectionComponent.tsx:49

Insert a child before an element.

Parameters

ParameterTypeDescription
nodeVNodeThe node to insert
beforestringThe element to insert before.

Returns

string

An identifier for the added element.

Inherited from

CollectionComponent.insertBefore


onAfterRender()

onAfterRender(): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/TestComponent.tsx:15

A callback after the component renders.

Returns

void

Overrides

CollectionComponent.onAfterRender


onBeforeRender()

onBeforeRender(): void

Defined in: sdk/components/FSComponent.ts:80

A callback that is called before the component is rendered.

Returns

void

Inherited from

CollectionComponent.onBeforeRender


removeItem()

removeItem(id): void

Defined in: sdk/components/CollectionComponent.tsx:39

Remove a child element.

Parameters

ParameterTypeDescription
idstringThe ID of the child to remove.

Returns

void

Inherited from

CollectionComponent.removeItem


render()

render(): VNode

Defined in: sdk/components/CollectionComponent.tsx:71

Render the element.

Returns

VNode

A VNode.

Inherited from

CollectionComponent.render