mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
ion-action-sheet-controller
Action Sheet controllers programmatically control the action sheet component. Action Sheets can be created and dismissed from the action sheet controller. View the Action Sheet documentation for a full list of options to pass upon creation.
Methods
create(opts: ActionSheetOptions) => Promise<HTMLIonActionSheetElement>
Create an action sheet overlay with action sheet options.
Parameters
| Name | Type | Description |
|---|---|---|
opts |
ActionSheetOptions |
Returns
Type: Promise<HTMLIonActionSheetElement>
dismiss(data?: any, role?: string | undefined, id?: string | undefined) => Promise<boolean>
Dismiss the open action sheet overlay.
Parameters
| Name | Type | Description |
|---|---|---|
data |
any |
|
role |
string | undefined |
|
id |
string | undefined |
Returns
Type: Promise<boolean>
getTop() => Promise<HTMLIonActionSheetElement | undefined>
Get the most recently opened action sheet overlay.
Returns
Type: Promise<HTMLIonActionSheetElement | undefined>
Built with StencilJS