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