You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**`index`**| <code>number</code> | The index of the clicked option (Zero-based), or -1 if the sheet was canceled. On iOS, if there is a button with <ahref="#actionsheetbuttonstyle">ActionSheetButtonStyle.Cancel</a>, and user clicks outside the sheet, the index of the cancel option is returned | 1.0.0 |
90
-
|**`canceled`**| <code>boolean</code> | True if sheet was canceled by user; False otherwise On Web, requires having @ionic/pwa-elements version 3.4.0 or higher. | 8.1.0 |
|**`index`**| <code>number</code> | The index of the clicked option (Zero-based), or -1 if the Action Sheet was canceled. On iOS, if there is a button with <ahref="#actionsheetbuttonstyle">ActionSheetButtonStyle.Cancel</a>, and user clicks outside the Action Sheet, the index of the Cancel button is returned.| 1.0.0 |
90
+
|**`canceled`**| <code>boolean</code> | True if the Action Sheet was canceled by user; False otherwise. On Web, requires having @ionic/pwa-elements version 3.4.0 or higher.| 8.1.0 |
|**`title`**| <code>string</code> | The title of the Action Sheet. | 1.0.0 |
98
-
|**`message`**| <code>string</code> | A message to show under the title. This option is only supported on iOS. | 1.0.0 |
99
-
|**`options`**| <code>ActionSheetButton[]</code> | Options the user can choose from. | 1.0.0 |
100
-
|**`cancelable`**| <code>boolean</code> | If true, sheet is canceled when clicked outside; If false, it is not. By default, false. Not available on iOS, sheet is always cancelable by clicking outside of it. On Web, requires having @ionic/pwa-elements version 3.4.0 or higher. | 8.1.0 |
|**`title`**| <code>string</code> | The title of the Action Sheet. || 1.0.0 |
98
+
|**`message`**| <code>string</code> | A message to show under the title. This option is only supported on iOS. || 1.0.0 |
99
+
|**`options`**| <code>ActionSheetButton[]</code> | Options the user can choose from. || 1.0.0 |
100
+
|**`cancelable`**| <code>boolean</code> | If true, the Action Sheet is canceled when clicked outside; If false, it is not. On iOS, it's not available if there is a button with <ahref="#actionsheetbuttonstyle">ActionSheetButtonStyle.Cancel</a>, or on iOS 26+. In those cases, the Action Sheet is always cancelable by clicking outside of it. On Web, requires having @ionic/pwa-elements version 3.4.0 or higher.| <code>false</code>| 8.1.0 |
|**`Default`**| <code>'DEFAULT'</code> | Default style of the option. | 1.0.0 |
120
-
|**`Destructive`**| <code>'DESTRUCTIVE'</code> | Style to use on destructive options. | 1.0.0 |
121
-
|**`Cancel`**| <code>'CANCEL'</code> | Style to use on the option that cancels the Action Sheet. If used, should be on the latest availabe option. | 1.0.0 |
|**`Default`**| <code>'DEFAULT'</code> | Default style of the option. | 1.0.0 |
120
+
|**`Destructive`**| <code>'DESTRUCTIVE'</code> | Style to use on destructive options. | 1.0.0 |
121
+
|**`Cancel`**| <code>'CANCEL'</code> | Style to use on the option that cancels the Action Sheet. If used, should be on the latest available option. On iOS 26+ is not displayed, the Action Sheet is cancelable by tapping outside. | 1.0.0 |
// For iOS versions below 26, setting the presentation controller delegate would result in a crash
67
64
// "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The presentation controller of an alert controller presenting as an alert must not have its delegate modified"
68
65
// Hence, the alternative by adding a gesture recognizer (which only works for iOS versions below 26)
* The index of the clicked option (Zero-based), or -1 if the sheet was canceled.
93
+
* The index of the clicked option (Zero-based), or -1 if the Action Sheet was canceled.
91
94
*
92
-
* On iOS, if there is a button with ActionSheetButtonStyle.Cancel, and user clicks outside the sheet, the index of the cancel option is returned
95
+
* On iOS, if there is a button with ActionSheetButtonStyle.Cancel, and user clicks outside the Action Sheet, the index of the Cancel button is returned.
93
96
*
94
97
* @since 1.0.0
95
98
*/
96
99
index: number;
97
100
/**
98
-
* True if sheet was canceled by user; False otherwise
101
+
* True if the Action Sheet was canceled by user; False otherwise.
99
102
*
100
103
* On Web, requires having @ionic/pwa-elements version 3.4.0 or higher.
0 commit comments