From 740ac327f77b0abe690e5414d017a38c5e5e5329 Mon Sep 17 00:00:00 2001 From: markuczy <129275100+markuczy@users.noreply.github.com> Date: Tue, 10 Dec 2024 08:49:55 +0100 Subject: [PATCH] feat: disabled header action buttons can have tooltip (#633) --- .../page-header/page-header.component.html | 27 ++++++++++--------- .../page-header/page-header.component.ts | 2 ++ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html index 6d1f522b..6cb8ba21 100644 --- a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html +++ b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html @@ -51,20 +51,23 @@

{{ subheader }}

- + > + +
diff --git a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts index fc0c3f8d..829ef5da 100644 --- a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts +++ b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts @@ -38,6 +38,8 @@ export interface Action { btnClass?: string actionCallback(): void disabled?: boolean + disabledTooltip?: string + disabledTooltipKey?: string show?: 'always' | 'asOverflow' conditional?: boolean // Note: This currently doesn't work with dynamic values, since a passed in Action is just a copy of the original object.