mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
refactor(toast): deprecate cssClass on ToastButton (#27959)
This commit is contained in:
@ -25,11 +25,17 @@ export interface ToastOptions {
|
||||
|
||||
export type ToastLayout = 'baseline' | 'stacked';
|
||||
|
||||
// TODO FW-4923 remove cssClass property
|
||||
|
||||
export interface ToastButton {
|
||||
text?: string;
|
||||
icon?: string;
|
||||
side?: 'start' | 'end';
|
||||
role?: 'cancel' | string;
|
||||
|
||||
/**
|
||||
* @deprecated Use the toast button's CSS Shadow Parts instead.
|
||||
*/
|
||||
cssClass?: string | string[];
|
||||
htmlAttributes?: { [key: string]: any };
|
||||
handler?: () => boolean | void | Promise<boolean | void>;
|
||||
|
||||
Reference in New Issue
Block a user