overlay/src/layouts/confirmation/confirmation.types.ts
Configuration of the confirmation dialog.
Example :private config: IConfirmationConfig = {
level: ConfirmationLevel.Info,
message: 'My Confirmation Message',
confirm: {
label: 'Button Label',
action: () => {
console.log('Confirm clicked');
},
},
};import { IConfirmationConfig } from '@talenra/components/overlay';
Properties |
|
| additionalCancel |
additionalCancel:
|
Type : IConfirmationButtonConfig
|
| Optional |
|
The configuration for the additional cancel button. |
| additionalConfirm |
additionalConfirm:
|
Type : IConfirmationButtonConfig
|
| Optional |
|
The configuration for the additional action button. |
| additionalInformation |
additionalInformation:
|
Type : string
|
| Optional |
|
The additional information to be displayed in the dialog. |
| cancel |
cancel:
|
Type : IConfirmationButtonConfig
|
| Optional |
|
The configuration for the cancel button. |
| confirm |
confirm:
|
Type : IConfirmationButtonConfig
|
|
The configuration for the confirm button. |
| displayWaitingIndicator |
displayWaitingIndicator:
|
Type : boolean
|
| Optional |
|
Whether the waiting indicator should be shown at the beginning. |
| isAdditionalInformationCollapsible |
isAdditionalInformationCollapsible:
|
Type : boolean
|
| Optional |
|
Whether additional information's visibility can be toggled. |
| isContentCopyable |
isContentCopyable:
|
Type : boolean
|
| Optional |
|
Whether a CopyContent button is shown. |
| level |
level:
|
Type : TConfirmationLevel
|
|
The name of the icon to be displayed in the dialog. |
| message |
message:
|
Type : string
|
| Optional |
|
The main text to be displayed in the dialog. |