Skip to main content

ContextMenuSelectEvent

Event fired when a ContextMenu item is selected.

Inherits: ContextMenuDismissEvent

Properties

  • item - The selected menu item.
  • item_id - Internal numeric identifier of the selected menu item.
  • item_index - Index of the selected menu entry within the rendered list.

Properties

itemproperty

item: PopupMenuItem | None

The selected menu item.

item_idclass-attributeinstance-attribute

item_id: int | None = field(
    default=None, metadata={"data_field": "id"}
)

Internal numeric identifier of the selected menu item.

item_indexclass-attributeinstance-attribute

item_index: int | None = field(
    default=None, metadata={"data_field": "idx"}
)

Index of the selected menu entry within the rendered list.