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 { export interface ActionSheetButton {
text?: string; text?: string;
role?: string; role?: 'cancel' | 'destructive' | 'selected';
icon?: string; icon?: string;
cssClass?: string; cssClass?: string;
handler?: () => boolean | void; handler?: () => boolean | void;

View File

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