Abstract Class: AvionicsPlugin<T>
Defined in: src/sdk/components/FSComponent.ts:1456
A plugin that is created and managed by the plugin system.
Extended by
G1000AvionicsPluginG3000PluginAbstractG3000PfdPluginAbstractG3000MfdPluginAbstractG3000GtcPluginAbstractG3XTouchPluginG3XTouchPluginWT21AvionicsPluginEpic2AvionicsPlugin
Type Parameters
| Type Parameter |
|---|
T |
Constructors
Constructor
new AvionicsPlugin<
T>(binder):AvionicsPlugin<T>
Defined in: src/sdk/components/FSComponent.ts:1461
Creates an instance of a Plugin.
Parameters
| Parameter | Type | Description |
|---|---|---|
binder | T | The avionics specific plugin binder to accept from the system. |
Returns
AvionicsPlugin<T>
Properties
binder
protectedreadonlybinder:T
Defined in: src/sdk/components/FSComponent.ts:1461
The avionics specific plugin binder to accept from the system.
onComponentCreated()?
optionalonComponentCreated: (component) =>void
Defined in: src/sdk/components/FSComponent.ts:1481
An optional hook called when a component is created. If this hook is present, it will be called for EVERY component instantiation, so be sure to ensure that this code is well optimized.
Parameters
| Parameter | Type |
|---|---|
component | DisplayComponent<any> |
Returns
void
onComponentCreating()?
optionalonComponentCreating: (constructor,props) =>undefined|DisplayComponent<any, []>
Defined in: src/sdk/components/FSComponent.ts:1474
An optional hook called when a component is about to be created. Returning a component causes that component to be used instead of the one that was to be created, and returning undefined will cause the original component to be created. If this hook is present, it will be called for EVERY component instantiation, so be sure to ensure that this code is well optimized.
Parameters
| Parameter | Type |
|---|---|
constructor | DisplayComponentFactory<any> |
props | any |
Returns
undefined | DisplayComponent<any, []>
onComponentRendered()?
optionalonComponentRendered: (node) =>void
Defined in: src/sdk/components/FSComponent.ts:1488
An optional hook called when a component has completed rendering. If this hook is present, it will be called for EVERY component render completion, so be sure to ensure that this code is well optimized.
Parameters
| Parameter | Type |
|---|---|
node | VNode |
Returns
void
Methods
loadCss()
protectedloadCss(uri):Promise<void>
Defined in: src/sdk/components/FSComponent.ts:1494
Loads a CSS file into the instrument.
Parameters
| Parameter | Type | Description |
|---|---|---|
uri | string | The URI to the CSS file. |
Returns
Promise<void>
onInstalled()
abstractonInstalled():void
Defined in: src/sdk/components/FSComponent.ts:1466
A callback run when the plugin has been installed.
Returns
void