Class: TestFPL
test component
Hierarchy
CollectionComponent
<TestFplProps
>↳
TestFPL
Constructors
constructor
• new TestFPL(props
): TestFPL
Creates an instance of a DisplayComponent.
Parameters
Name | Type | Description |
---|---|---|
props | TestFplProps | The propertis of the component. |
Returns
Inherited from
CollectionComponent<TestFplProps>.constructor
Defined in
sdk/components/FSComponent.ts:73
Properties
context
• Optional
context: [] = undefined
The context on this component, if any.
Inherited from
CollectionComponent.context
Defined in
sdk/components/FSComponent.ts:64
contextType
• Optional
Readonly
contextType: readonly [] = undefined
The type of context for this component, if any.
Inherited from
CollectionComponent.contextType
Defined in
sdk/components/FSComponent.ts:67
props
• props: TestFplProps
& ComponentProps
The properties of the component.
Inherited from
CollectionComponent.props
Defined in
sdk/components/FSComponent.ts:61
Methods
addItem
▸ addItem(node
): string
Add a new child element.
Parameters
Name | Type | Description |
---|---|---|
node | VNode | A VNode to add to the container. |
Returns
string
An identifier for the added element.
Inherited from
CollectionComponent.addItem
Defined in
sdk/components/CollectionComponent.tsx:29
destroy
▸ destroy(): void
Destroys this component.
Returns
void
Inherited from
CollectionComponent.destroy
Defined in
sdk/components/FSComponent.ts:98
getContext
▸ getContext(context
): never
Gets a context data subscription from the context collection.
Parameters
Name | Type | Description |
---|---|---|
context | never | The 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
Defined in
sdk/components/FSComponent.ts:106
insertAfter
▸ insertAfter(node
, after
): string
Insert a child after an element.
Parameters
Name | Type | Description |
---|---|---|
node | VNode | The node to insert |
after | string | The element to insert after. |
Returns
string
An identifier for the added element.
Inherited from
CollectionComponent.insertAfter
Defined in
sdk/components/CollectionComponent.tsx:61
insertBefore
▸ insertBefore(node
, before
): string
Insert a child before an element.
Parameters
Name | Type | Description |
---|---|---|
node | VNode | The node to insert |
before | string | The element to insert before. |
Returns
string
An identifier for the added element.
Inherited from
CollectionComponent.insertBefore
Defined in
sdk/components/CollectionComponent.tsx:49
onAfterRender
▸ onAfterRender(): void
A callback after the component renders.
Returns
void
Overrides
CollectionComponent.onAfterRender
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/TestComponent.tsx:15
onBeforeRender
▸ onBeforeRender(): void
A callback that is called before the component is rendered.
Returns
void
Inherited from
CollectionComponent.onBeforeRender
Defined in
sdk/components/FSComponent.ts:80
removeItem
▸ removeItem(id
): void
Remove a child element.
Parameters
Name | Type | Description |
---|---|---|
id | string | The ID of the child to remove. |
Returns
void
Inherited from
CollectionComponent.removeItem
Defined in
sdk/components/CollectionComponent.tsx:39
render
▸ render(): VNode
Render the element.
Returns
VNode
A VNode.
Inherited from
CollectionComponent.render
Defined in
sdk/components/CollectionComponent.tsx:71