Skip to Content
API ReferenceContextMenuItem

ContextMenuItem

A single entry in a ContextMenu.

Constructor

ContextMenuItem

Creates a ContextMenuItem.

ParameterDescription
labelDisplay label. Must not be null.
onTapCallback invoked on tap. Must not be null.
disabledWhether the item is non-interactive. Defaults to false.

Properties

Disabled

When true the item is rendered with reduced opacity and does not respond to taps. Defaults to false.

Label

The label displayed for this menu item.

OnTap

Callback invoked when the user taps this item. Not invoked when Disabled is true.

Last updated on