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 = FalseWhether this action should receive the style of an emphasized, default action.
destructiveclass-attributeinstance-attribute
destructive: bool = FalseWhether this action should receive the style of a destructive action.
Events
on_clickclass-attributeinstance-attribute
on_click: Optional[ControlEventHandler[CupertinoContextMenuAction]] = NoneCalled when this action button is clicked.