import { AddinConfirmButtonStyle } from './addin-confirm-button-style'; /** * Interface for confirm dialog button configuration. */ export interface AddinConfirmButton { /** * Specifies an identifier to return when users select the button to close * the confirm dialog. This is useful to determine which button users select. * * Note: An action identifier of "close" is returned when the confirm dialog * is closed using the Esc key or using the dialog's "x" icon. */ action: string; /** * Specifies the label for the button. */ text: string; /** * Indicates whether to place focus on this button by default. (Default: false) */ autofocus?: boolean; /** * Specifies specific styling to apply to the button. (Default: AddinConfirmButtonStyle.Default) */ style?: AddinConfirmButtonStyle; }