Skip to main content

CupertinoContextMenuAction

A cupertino context menu action.

Typically used as a child of flet.CupertinoContextMenu.actions.

Inherits: AdaptiveControl

Properties

  • content - The content of this action button.
  • default - Whether this action should receive the style of an emphasized, default action.
  • destructive - Whether this action should receive the style of a destructive action.
  • trailing_icon - An icon to display at the right of the content control.

Events

  • on_click - Called when this action button is clicked.

Properties

contentinstance-attribute

content: Annotated[StrOrControl, V.str_or_visible_control()]

The content of this action button.

Raises:

  • ValueError - If it is neither a string nor a visible Control.

defaultclass-attributeinstance-attribute

default: bool = False

Whether this action should receive the style of an emphasized, default action.

destructiveclass-attributeinstance-attribute

destructive: bool = False

Whether this action should receive the style of a destructive action.

trailing_iconclass-attributeinstance-attribute

trailing_icon: Optional[IconData] = None

An icon to display at the right of the content control.

Events

on_clickclass-attributeinstance-attribute

on_click: Optional[ControlEventHandler[CupertinoContextMenuAction]] = None

Called when this action button is clicked.