mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +00:00
2.2 KiB
2.2 KiB
Title, Added, Status, Last reviewed
| Title | Added | Status | Last reviewed |
|---|---|---|---|
| Dialog Data Interface | v6.9.0 | Active | 2024-05-17 |
Dialog Data Interface
Specifies interface for Dialog Component.
Basic usage
interface DialogData {
title: string;
description?: string;
confirmButtonTitle?: string;
cancelButtonTitle?: string;
isConfirmButtonDisabled$?: Subject<boolean>;
isCloseButtonHidden?: boolean;
isCancelButtonHidden?: boolean;
dialogSize?: DialogSizes;
contentTemplate?: TemplateRef<any>;
actionsTemplate?: TemplateRef<any>;
descriptionTemplate?: TemplateRef<any>;
headerIcon?: string;
}
Properties
| Name | Type | Default value | Description |
|---|---|---|---|
| title | string |
It will be placed in the dialog title section. | |
| headerIcon | string |
It will be placed in header section. Should be used with Alert dialogs. (optional) | |
| description | string |
It will be placed first in the dialog content section. (optional) | |
| confirmButtonTitle | string |
COMMON.APPLY |
Confirmation action. After this, the dialog is closed and the isConfirmButtonDisabled$ is set to true. (optional) |
| cancelButtonTitle | string |
COMMON.CANCEL |
Cancellation action. After this, the dialog is closed |
| isCancelButtonHidden | boolean |
false |
Toggles cancel button visibility. (optional) |
| isCloseButtonHidden | boolean |
false |
Toggles close button visibility. (optional) |
| isConfirmButtonDisabled$ | Subject<boolean> |
false |
Toggles confirm button disability. (optional) |
| dialogSize | DialogSize |
Medium |
Set dialog size. Can be Large, Medium, Alert. (optional) |
| contentTemplate | TemplateRef<any> |
Inserts a content template. (optional) | |
| actionsTemplate | TemplateRef<any> |
Inserts a template styled on the left. Should be used for additional mat-button style buttons. (optional) |
|
| descriptionTemplate | TemplateRef<any> |
Inserts a description template. (optional) |