Skip to main content

Class: PFDPageMenuDialog

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/UI/PFDPageMenuDialog.tsx:13

Dialog used for displaying PFD page menus.

Extends​

Constructors​

Constructor​

new PFDPageMenuDialog(props): PFDPageMenuDialog

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:36

Parameters​

ParameterType
propsListMenuDialogProps

Returns​

PFDPageMenuDialog

Inherit Doc​

Inherited from​

ListMenuDialog.constructor

Properties​

context?​

optional context: [] = undefined

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

The context on this component, if any.

Inherited from​

ListMenuDialog.context


contextType?​

readonly optional contextType: readonly [] = undefined

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

The type of context for this component, if any.

Inherited from​

ListMenuDialog.contextType


focusSubject​

protected focusSubject: Subject<boolean>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:33

Inherited from​

ListMenuDialog.focusSubject


inputData​

inputData: Subject<any>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:36

Inherited from​

ListMenuDialog.inputData


listContainerRef​

protected listContainerRef: NodeReference<HTMLElement>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/ListMenuDialog.tsx:25

Inherited from​

ListMenuDialog.listContainerRef


listRef​

protected listRef: NodeReference<List>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/ListMenuDialog.tsx:24

Inherited from​

ListMenuDialog.listRef


protected menuItemsSubject: ArraySubject<MenuItemDefinition>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/ListMenuDialog.tsx:28

Inherited from​

ListMenuDialog.menuItemsSubject


onAccept​

onAccept: SubEventInterface<PFDPageMenuDialog, any>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:40

Inherited from​

ListMenuDialog.onAccept


onClose​

onClose: SubEventInterface<PFDPageMenuDialog, void>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:39

Inherited from​

ListMenuDialog.onClose


onOpen​

onOpen: SubEventInterface<PFDPageMenuDialog, void>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:38

Inherited from​

ListMenuDialog.onOpen


props​

props: ListMenuDialogProps & ComponentProps

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

The properties of the component.

Inherited from​

ListMenuDialog.props


scrollController​

protected scrollController: ScrollController

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:32

Inherited from​

ListMenuDialog.scrollController


viewContainerRef​

protected readonly viewContainerRef: NodeReference<HTMLDivElement>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:32

Inherited from​

ListMenuDialog.viewContainerRef


viewResult​

viewResult: any

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:34

Inherited from​

ListMenuDialog.viewResult

Methods​

accept()​

accept(result?, closeView?): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:108

Confirms the view result and closes the view.

Parameters​

ParameterTypeDefault valueDescription
result?anyundefinedProvide the view result if not already set.
closeView?booleantrueIndicates if the view should be closed after confirming the result.

Returns​

void

Inherited from​

ListMenuDialog.accept


blur()​

blur(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:71

Method to unfocus this control group

Returns​

void

Inherited from​

ListMenuDialog.blur


buildMenuItems()​

protected buildMenuItems(): MenuItemDefinition[]

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/ListMenuDialog.tsx:44

Gets the menu item definitions for the list.

Returns​

MenuItemDefinition[]

menu item definitions.

Inherited from​

ListMenuDialog.buildMenuItems


close()​

close(quickclose): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:65

Closes the view.

Parameters​

ParameterTypeDefault valueDescription
quickclosebooleanfalsebool stating whether to quickclose the child.

Returns​

void

Inherited from​

ListMenuDialog.close


destroy()​

destroy(): void

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

Destroys this component.

Returns​

void

Inherited from​

ListMenuDialog.destroy


focus()​

focus(dir): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:61

Method to focus this control group

Parameters​

ParameterTypeDefault valueDescription
dirEntryDirection'top'The direction of entry.

Returns​

void

Inherited from​

ListMenuDialog.focus


getContext()​

protected getContext(context): never

Defined in: 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​

ListMenuDialog.getContext


getHighlightElement()​

getHighlightElement(): Element | null

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:125

This is just a dummy that exists here to be compatible with the union type of ScrollableControl

Returns​

Element | null

null

Inherited from​

ListMenuDialog.getHighlightElement


getIsFocusable()​

getIsFocusable(): boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:88

Gets a boolean indicating if this control is able to be focused.

Returns​

boolean

true

Inherited from​

ListMenuDialog.getIsFocusable


getIsFocused()​

getIsFocused(): boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:80

Method to check if this UiControlGroup is in focus

Returns​

boolean

true if the control group is in focus, false otherwise

Inherited from​

ListMenuDialog.getIsFocused


notifyViewOpened()​

protected notifyViewOpened(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:131

Notifies subscribers that the view has been opened.

Returns​

void

Inherited from​

ListMenuDialog.notifyViewOpened


onAfterRender()​

onAfterRender(node): void

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

A callback that is called after the component is rendered.

Parameters​

ParameterTypeDescription
nodeVNodeThe component's VNode.

Returns​

void

Inherited from​

ListMenuDialog.onAfterRender


onBeforeRender()​

onBeforeRender(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:51

A callback that is called before the component is rendered.

Returns​

void

Inherited from​

ListMenuDialog.onBeforeRender


onBlurred()​

protected onBlurred(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:244

A callback which is called when this control group is blurred.

Returns​

void

Inherited from​

ListMenuDialog.onBlurred


onFocused()​

protected onFocused(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:237

A callback which is called when this control group is focused.

Returns​

void

Inherited from​

ListMenuDialog.onFocused


onInputDataSet()​

protected onInputDataSet(input): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:194

Method to be overridden by view inheriting UiView to do something when the input data is set.

Parameters​

ParameterTypeDescription
inputanyThe data that was set.

Returns​

void

Inherited from​

ListMenuDialog.onInputDataSet


onInteractionEvent()​

onInteractionEvent(evt): boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/ListMenuDialog.tsx:31

Handler for interaction events to be handled by the view.

Parameters​

ParameterTypeDescription
evtFmsHEventThe HEvenet.

Returns​

boolean

true if the event was handled in this group

Inherited from​

ListMenuDialog.onInteractionEvent


onScrollToggled()​

protected onScrollToggled(enabled): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:97

A method called when the control group scroll is toggled.

Parameters​

ParameterTypeDescription
enabledbooleanif the scroll is enabled.

Returns​

void

Inherited from​

ListMenuDialog.onScrollToggled


onViewClosed()​

protected onViewClosed(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:184

Method to be overridden by view inheriting UiView to do something when the dialog opens.

Returns​

void

Inherited from​

ListMenuDialog.onViewClosed


onViewOpened()​

protected onViewOpened(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:169

Method to be overridden by view inheriting UiView to do something when the view opens.

Returns​

void

Inherited from​

ListMenuDialog.onViewOpened


onViewPaused()​

protected onViewPaused(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:179

Method to be overridden by view inheriting UiView to do something when the dialog opens.

Returns​

void

Inherited from​

ListMenuDialog.onViewPaused


onViewResumed()​

protected onViewResumed(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:174

Method to be overridden by view inheriting UiView to do something when the dialog opens.

Returns​

void

Inherited from​

ListMenuDialog.onViewResumed


open()​

open(isSubView, zIndex?): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:47

Shows the view.

Parameters​

ParameterTypeDescription
isSubViewbooleanWhether the view is being displayed as a subview.
zIndex?numberThe z-index to assign on the view container.

Returns​

void

Inherited from​

ListMenuDialog.open


pause()​

pause(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:201

Pauses the view (usually only called by ViewService).

Returns​

void

Inherited from​

ListMenuDialog.pause


processHEvent()​

processHEvent(evt): boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:134

Handles HEvents and routes them to the subdialog when existant.

Parameters​

ParameterTypeDescription
evtFmsHEventThe received event.

Returns​

boolean

true if the event was handled in this control group, false otherwise.

Inherited from​

ListMenuDialog.processHEvent


processScrollEvent()​

protected processScrollEvent(evt): boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:119

Attempts to handle scroll events.

Parameters​

ParameterTypeDescription
evtFmsHEventThe received event.

Returns​

boolean

whether the event was handled.

Inherited from​

ListMenuDialog.processScrollEvent


register()​

protected register(ctrl, unregister): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:226

Register/Unregisters a UiControl with the scroll controller.

Parameters​

ParameterTypeDefault valueDescription
ctrlScrollableControlundefinedThe UiControl to register.
unregisterbooleanfalseIndicates if the UiControl should be unregistered.

Returns​

void

Inherited from​

ListMenuDialog.register


render()​

render(): VNode

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/UI/PFDPageMenuDialog.tsx:15

Renders the component.

Returns​

VNode

The component VNode.

Overrides​

ListMenuDialog.render


renderItem()​

protected renderItem(d, registerFn): VNode

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/ListMenuDialog.tsx:54

A callback called to render the menu items.

Parameters​

ParameterTypeDescription
dMenuItemDefinitionis the menu item
registerFn(ctrl) => voidThe register function.

Returns​

VNode

a vnode for display in the menu

Inherited from​

ListMenuDialog.renderItem


resume()​

resume(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:208

Resumes the view (usually only called by ViewService).

Returns​

void

Inherited from​

ListMenuDialog.resume


routeEventToControl()​

protected routeEventToControl(evt, control): boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:176

Routes an interaction event to a UiControl.

Parameters​

ParameterTypeDescription
evtFmsHEventAn interaction event.
controlUiControlThe UiControl to which to route the event.

Returns​

boolean

Whether the event was handled by the UiControl.

Inherited from​

ListMenuDialog.routeEventToControl


setInput()​

setInput(input): this

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:97

Set data on this view.

Parameters​

ParameterTypeDescription
inputanyThe input data.

Returns​

this

This view instance for chain commands.

Inherited from​

ListMenuDialog.setInput


setMenuItems()​

setMenuItems(items): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/ListMenuDialog.tsx:62

Sets the menu items for the list menu dialog.

Parameters​

ParameterTypeDescription
itemsMenuItemDefinition[]The items to set into the menu.

Returns​

void

Inherited from​

ListMenuDialog.setMenuItems


setScrollEnabled()​

setScrollEnabled(enabled): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:113

Sets the scroll enabled state

Parameters​

ParameterTypeDescription
enabledbooleanindicating if scrolling should be enabled

Returns​

void

Inherited from​

ListMenuDialog.setScrollEnabled


setZIndex()​

setZIndex(zIndex): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiView.tsx:88

Sets this view's z-index.

Parameters​

ParameterTypeDescription
zIndexnumber | undefinedThe new z-indez. If not defined, the view's z-index will be reset.

Returns​

void

Inherited from​

ListMenuDialog.setZIndex


toggleScroll()​

toggleScroll(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControlGroup.tsx:104

Toggles the scroll highlighting

Returns​

void

Inherited from​

ListMenuDialog.toggleScroll