mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 07:41:51 +08:00
feat(actionSheet): union types for actionsheet button
This commit is contained in:
@ -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;
|
||||||
|
|||||||
@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user