Context menu

Lifts a copy of an element over a blurred page, with actions under it

Contents

Long press a note, or use its button, to open the menu.

A note on the left.

A note on the right, with its actions on the right.

Another note on the left.

Last action: none

Inputs
anchor : HTMLElement

The element the menu opens over. The preview is laid over it.

label : string

Accessible name of the menu.

alignEnd ?: boolean = false

Aligns the actions to the right edge, e.g. for own messages.

boundary ?: string

Selector of the ancestor of the anchor that the preview and actions fit inside, e.g. a scrollable list. When it is too short, they fit the screen.

trackingLabel ?: string = 'ContextMenuDismiss'

Tracking label for closing the menu by tapping the backdrop.

Outputs
closed ?: any = new EventEmitter<void>()

Emits when the menu has closed, after a selected item emits.