mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +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';
|
export type ToastLayout = 'baseline' | 'stacked';
|
||||||
|
|
||||||
|
// TODO FW-4923 remove cssClass property
|
||||||
|
|
||||||
export interface ToastButton {
|
export interface ToastButton {
|
||||||
text?: string;
|
text?: string;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
side?: 'start' | 'end';
|
side?: 'start' | 'end';
|
||||||
role?: 'cancel' | string;
|
role?: 'cancel' | string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use the toast button's CSS Shadow Parts instead.
|
||||||
|
*/
|
||||||
cssClass?: string | string[];
|
cssClass?: string | string[];
|
||||||
htmlAttributes?: { [key: string]: any };
|
htmlAttributes?: { [key: string]: any };
|
||||||
handler?: () => boolean | void | Promise<boolean | void>;
|
handler?: () => boolean | void | Promise<boolean | void>;
|
||||||
|
|||||||
Reference in New Issue
Block a user