Abstract Class: Modal<P>
Defined in: workingtitle-instruments-epic2/shared/Modals/Modal.tsx:16
The Modal component.
Extends
Extended by
ChartsAirportSearchCrossModalDepartureArrivalModalHoldModalInterceptModalJoinAirwayOverlayNearestFunctionModalSelectObjectModalShowInfoModal
Type Parameters
| Type Parameter | Default type |
|---|---|
P extends ModalProps | ModalProps |
Constructors
Constructor
new Modal<
P>(props):Modal<P>
Defined in: sdk/components/FSComponent.ts:73
Creates an instance of a DisplayComponent.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | P | The propertis of the component. |
Returns
Modal<P>
Inherited from
Properties
context?
optionalcontext: [] =undefined
Defined in: sdk/components/FSComponent.ts:64
The context on this component, if any.
Inherited from
contextType?
readonlyoptionalcontextType: readonly [] =undefined
Defined in: sdk/components/FSComponent.ts:67
The type of context for this component, if any.
Inherited from
props
props:
P&ComponentProps
Defined in: sdk/components/FSComponent.ts:61
The properties of the component.
Inherited from
Methods
close()
protectedclose():void
Defined in: workingtitle-instruments-epic2/shared/Modals/Modal.tsx:33
Closes this modal.
Returns
void
destroy()
destroy():
void
Defined in: sdk/components/FSComponent.ts:98
Destroys this component.
Returns
void
Inherited from
getContext()
protectedgetContext(context):never
Defined in: sdk/components/FSComponent.ts:106
Gets a context data subscription from the context collection.
Parameters
| Parameter | 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
onAfterRender()
onAfterRender():
void
Defined in: workingtitle-instruments-epic2/shared/Modals/Modal.tsx:18
A callback that is called after the component is rendered.
Returns
void
Overrides
DisplayComponent.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
DisplayComponent.onBeforeRender
onPause()
onPause():
void
Defined in: workingtitle-instruments-epic2/shared/Modals/Modal.tsx:28
Called when modal is closed.
Returns
void
onResume()
onResume():
void
Defined in: workingtitle-instruments-epic2/shared/Modals/Modal.tsx:23
Called when modal is opened.
Returns
void
render()
abstractrender():null|VNode
Defined in: sdk/components/FSComponent.ts:93
Renders the component.
Returns
null | VNode
A JSX element to be rendered.