From 457de0987ccb86b93c684f7d20254b22353ebfa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:08:30 +0300 Subject: [PATCH] ConfirmDialog | Add missing templates (message, icon) & update the docs --- .../confirmdialog/confirmdialog.interface.ts | 8 + .../components/confirmdialog/confirmdialog.ts | 23 +- src/app/showcase/doc/apidoc/index.json | 572 +++++++++++++++--- .../showcase/doc/confirmdialog/templatedoc.ts | 30 +- 4 files changed, 546 insertions(+), 87 deletions(-) diff --git a/src/app/components/confirmdialog/confirmdialog.interface.ts b/src/app/components/confirmdialog/confirmdialog.interface.ts index 40b7098150b..840b67eeb2e 100644 --- a/src/app/components/confirmdialog/confirmdialog.interface.ts +++ b/src/app/components/confirmdialog/confirmdialog.interface.ts @@ -12,6 +12,14 @@ export interface ConfirmDialogTemplates { * Custom template of footer. */ footer(): TemplateRef; + /** + * Custom template of message. + */ + message(): TemplateRef; + /** + * Custom template of icon. + */ + icon(): TemplateRef; /** * Custom template of rejecticon. */ diff --git a/src/app/components/confirmdialog/confirmdialog.ts b/src/app/components/confirmdialog/confirmdialog.ts index 77e7076f642..c7a22811e5a 100755 --- a/src/app/components/confirmdialog/confirmdialog.ts +++ b/src/app/components/confirmdialog/confirmdialog.ts @@ -68,8 +68,14 @@ const hideAnimation = animation([animate('{{transition}}', style({ transform: '{
- - + + + + + + + +