Skip to content

CupertinoContextMenuAction

Examples#

See these.

CupertinoContextMenuAction #

Bases: AdaptiveControl

A cupertino context menu action.

Typically used as a child of CupertinoContextMenu.actions.

RAISES DESCRIPTION
AssertionError

If content is neither a string nor a visible Control.

content #

content: StrOrControl

The content of this action button.

default #

default: bool = False

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

destructive #

destructive: bool = False

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

on_click #

on_click: (
    ControlEventHandler[CupertinoContextMenuAction] | None
) = None

Called when this action button is clicked.

trailing_icon #

trailing_icon: IconData | None = None

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

before_update #

before_update()