feat(action-sheet): add data property to ActionSheetButton (#23744)

resolves #23700

Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
This commit is contained in:
Hans Krywalsky
2021-08-09 17:32:57 +02:00
committed by GitHub
parent fbd32ffb26
commit 30f8508296
11 changed files with 144 additions and 25 deletions

View File

@ -16,11 +16,12 @@ export interface ActionSheetOptions {
leaveAnimation?: AnimationBuilder;
}
export interface ActionSheetButton {
export interface ActionSheetButton<T = any> {
text?: string;
role?: 'cancel' | 'destructive' | 'selected' | string;
icon?: string;
cssClass?: string | string[];
id?: string;
handler?: () => boolean | void | Promise<boolean | void>;
data?: T;
}