From 9e24a0b49357a3a39ca89f026ff23271a365d935 Mon Sep 17 00:00:00 2001 From: Devin Shoemaker Date: Tue, 29 Jun 2021 13:17:19 -0500 Subject: [PATCH] feat(action-sheet, alert): add id to AlertButton and ActionSheetButton (#18992) resolves #22959 Co-authored-by: Liam DeBeasi --- .../components/action-sheet/action-sheet-interface.ts | 1 + core/src/components/action-sheet/action-sheet.tsx | 2 +- core/src/components/action-sheet/readme.md | 5 +++++ core/src/components/action-sheet/test/basic/index.html | 5 +++++ core/src/components/action-sheet/usage/angular.md | 1 + core/src/components/action-sheet/usage/javascript.md | 1 + core/src/components/action-sheet/usage/react.md | 1 + core/src/components/action-sheet/usage/stencil.md | 1 + core/src/components/action-sheet/usage/vue.md | 1 + core/src/components/alert/alert-interface.ts | 1 + core/src/components/alert/alert.tsx | 2 +- core/src/components/alert/readme.md | 10 ++++++++++ core/src/components/alert/test/basic/index.html | 5 +++++ core/src/components/alert/test/standalone/index.html | 1 + core/src/components/alert/test/translucent/index.html | 1 + core/src/components/alert/usage/angular.md | 2 ++ core/src/components/alert/usage/javascript.md | 2 ++ core/src/components/alert/usage/react.md | 2 ++ core/src/components/alert/usage/stencil.md | 2 ++ core/src/components/alert/usage/vue.md | 2 ++ 20 files changed, 46 insertions(+), 2 deletions(-) diff --git a/core/src/components/action-sheet/action-sheet-interface.ts b/core/src/components/action-sheet/action-sheet-interface.ts index d7d8154b8b..d37aaa1f9a 100644 --- a/core/src/components/action-sheet/action-sheet-interface.ts +++ b/core/src/components/action-sheet/action-sheet-interface.ts @@ -21,5 +21,6 @@ export interface ActionSheetButton { role?: 'cancel' | 'destructive' | 'selected' | string; icon?: string; cssClass?: string | string[]; + id?: string; handler?: () => boolean | void | Promise; } diff --git a/core/src/components/action-sheet/action-sheet.tsx b/core/src/components/action-sheet/action-sheet.tsx index 84c7d81c0a..130dd09c92 100644 --- a/core/src/components/action-sheet/action-sheet.tsx +++ b/core/src/components/action-sheet/action-sheet.tsx @@ -264,7 +264,7 @@ export class ActionSheet implements ComponentInterface, OverlayInterface { } {buttons.map(b => -