From 9b82d49da868536701d80ef1071df0e7cd301b7a Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 15 Jan 2020 19:25:51 +0100 Subject: Add action dropdown descriptions --- .../app/shared/buttons/action-dropdown.component.html | 16 +++++++++++----- .../app/shared/buttons/action-dropdown.component.scss | 1 + .../src/app/shared/buttons/action-dropdown.component.ts | 2 ++ 3 files changed, 14 insertions(+), 5 deletions(-) (limited to 'client/src/app/shared/buttons') diff --git a/client/src/app/shared/buttons/action-dropdown.component.html b/client/src/app/shared/buttons/action-dropdown.component.html index 99e8b7ec1..54f5bf97c 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.html +++ b/client/src/app/shared/buttons/action-dropdown.component.html @@ -15,17 +15,23 @@ - + - {{ action.label }} +
+ {{ action.label }} + {{ action.description }} +
+
+ +
+ - - {{ action.label }} +
diff --git a/client/src/app/shared/buttons/action-dropdown.component.scss b/client/src/app/shared/buttons/action-dropdown.component.scss index e33aa8d24..442c90984 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.scss +++ b/client/src/app/shared/buttons/action-dropdown.component.scss @@ -52,6 +52,7 @@ .dropdown-menu { .dropdown-item { + display: flex; cursor: pointer; color: #000 !important; diff --git a/client/src/app/shared/buttons/action-dropdown.component.ts b/client/src/app/shared/buttons/action-dropdown.component.ts index 5330ca220..a8b3ab16c 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/buttons/action-dropdown.component.ts @@ -4,6 +4,8 @@ import { GlobalIconName } from '@app/shared/images/global-icon.component' export type DropdownAction = { label?: string iconName?: GlobalIconName + description?: string + title?: string handler?: (a: T) => any linkBuilder?: (a: T) => (string | number)[] isDisplayed?: (a: T) => boolean -- cgit v1.2.3