Skip to content

ContextMenuSelectEvent

Inherits: ContextMenuDismissEvent

Event fired when a ContextMenu item is selected.

Properties

  • item(PopupMenuItem | None) –

    The selected menu item.

  • item_id(int | None) –

    Internal numeric identifier of the selected menu item.

  • item_index(int | None) –

    Index of the selected menu entry within the rendered list.

Properties#

item property #

item: PopupMenuItem | None

The selected menu item.

item_id class-attribute instance-attribute #

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

Internal numeric identifier of the selected menu item.

item_index class-attribute instance-attribute #

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

Index of the selected menu entry within the rendered list.