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 |
|**`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 |
// For iOS versions below 26, setting the presentation controller delegate would result in a crash
67
+
// "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
+
// Hence, the alternative by adding a gesture recognizer (which only works for iOS versions below 26)
0 commit comments