mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
feat(actionSheet): union types for actionsheet button
This commit is contained in:
@ -265,7 +265,7 @@ export interface ActionSheetOptions {
|
||||
|
||||
export interface ActionSheetButton {
|
||||
text?: string;
|
||||
role?: string;
|
||||
role?: 'cancel' | 'destructive' | 'selected';
|
||||
icon?: string;
|
||||
cssClass?: string;
|
||||
handler?: () => boolean | void;
|
||||
|
||||
@ -300,6 +300,7 @@
|
||||
buttons: [
|
||||
{
|
||||
text: 'Test',
|
||||
role: 'test',
|
||||
cssClass: 'my-cancel-button, my-custom-button customClass',
|
||||
handler: () => {
|
||||
console.log('Cancel clicked');
|
||||
|
||||
Reference in New Issue
Block a user