CupertinoActionSheetAction
Inherits: LayoutControl
An action button typically used in a CupertinoActionSheet.
Properties
-
content
(StrOrControl
) –The child control to be shown in this action button.
-
default
(bool
) –Whether this action should receive the style of an emphasized, default action.
-
destructive
(bool
) –Whether this action should receive the style of a destructive action.
-
mouse_cursor
(MouseCursor | None
) –Defines the mouse cursor for this action button.
Events
-
on_click
(ControlEventHandler[CupertinoActionSheetAction] | None
) –Called when this action button is clicked.
Properties#
content
#
content: StrOrControl
The child control to be shown in this action button.
Raises:
-
ValueError
–If
content
is neither a string nor a visible Control.
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.
Events#
on_click
#
on_click: (
ControlEventHandler[CupertinoActionSheetAction] | None
) = None
Called when this action button is clicked.