feat(actionSheet): union types for actionsheet button

This commit is contained in:
mhartington
2017-11-30 12:05:13 -05:00
parent 73e8725f6d
commit 45ee0a9627
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -300,6 +300,7 @@
buttons: [
{
text: 'Test',
role: 'test',
cssClass: 'my-cancel-button, my-custom-button customClass',
handler: () => {
console.log('Cancel clicked');