diff options
Diffstat (limited to 'client/src/app/shared/buttons/action-dropdown.component.ts')
-rw-r--r-- | client/src/app/shared/buttons/action-dropdown.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/buttons/action-dropdown.component.ts b/client/src/app/shared/buttons/action-dropdown.component.ts index 407d24b80..17f9cc618 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/buttons/action-dropdown.component.ts | |||
@@ -1,11 +1,10 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | 2 | ||
3 | export type DropdownAction<T> = { | 3 | export type DropdownAction<T> = { |
4 | type: 'custom' | 'delete' | 'edit' | ||
5 | label?: string | 4 | label?: string |
6 | handler?: (T) => any | 5 | handler?: (T) => any |
7 | linkBuilder?: (T) => (string | number)[] | 6 | linkBuilder?: (T) => (string | number)[] |
8 | iconClass?: string | 7 | isDisplayed?: (T) => boolean |
9 | } | 8 | } |
10 | 9 | ||
11 | @Component({ | 10 | @Component({ |
@@ -17,4 +16,5 @@ export type DropdownAction<T> = { | |||
17 | export class ActionDropdownComponent<T> { | 16 | export class ActionDropdownComponent<T> { |
18 | @Input() actions: DropdownAction<T>[] = [] | 17 | @Input() actions: DropdownAction<T>[] = [] |
19 | @Input() entry: T | 18 | @Input() entry: T |
19 | @Input() placement = 'left' | ||
20 | } | 20 | } |