CupertinoActionSheetAction
An action button typically used in a CupertinoActionSheet.
Inherits: LayoutControl
Properties
content- The child control to be shown in 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.mouse_cursor- Defines the mouse cursor for this action button.
Events
on_click- Called when this action button is clicked.
Properties
contentinstance-attribute
content: Annotated[StrOrControl, V.str_or_visible_control()]The child control to be shown in 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.
mouse_cursorclass-attributeinstance-attribute
mouse_cursor: Optional[MouseCursor] = NoneDefines the mouse cursor for this action button.
Events
on_clickclass-attributeinstance-attribute
on_click: Optional[ControlEventHandler[CupertinoActionSheetAction]] = NoneCalled when this action button is clicked.