Skip to content

CupertinoActionSheetAction

Examples#

See these.

CupertinoActionSheetAction #

Bases: LayoutControl

An action button typically used in a CupertinoActionSheet.

RAISES DESCRIPTION
AssertionError

If content is neither a string nor a visible Control.

content #

content: StrOrControl

The child control to be shown in 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.

mouse_cursor #

mouse_cursor: MouseCursor | None = None

Defines the mouse cursor for this action button.

on_click #

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

Called when this action button is clicked.

before_update #

before_update()