src/lib/shared/interfaces/icon-input.interface.ts
IIconInput is used to define the icon filter for an attribute.
Example :// Import
import { IIconInput } from '@talenra/inbox';const iconInput: IIconInput = { identifier: 'caseFlags', icon: 'error', activeIconColor: 'primary', iconTooltip: 'Hinweis', displayedString: (elem) => { return 'Beinhaltet die Rolle MA' + elem['caseFlags'].filter((s: string | string[]) => s.includes('MA')).length; }, assignmentCondition: (elem) => { return elem['caseFlags'].filter((s: string | string[]) => s.includes('MA')).length != 0; }, },
Properties |
| active |
active:
|
Type : boolean
|
| Optional |
|
Flag if the icon is chosen as active in the icon filter. |
| assignmentCondition |
assignmentCondition:
|
Type : function
|
|
The assignmentCondition is used to define the condition for the icon filter (which data item gets the icon note). |
| displayedString |
displayedString:
|
Type : function
|
|
The displayedString is used to define the property, which is displayed in the note box. |
| icon |
icon:
|
Type : string
|
|
The icon is limited by the talenra-icon library (https://gitlab.svanet.ch/talenra/talenra-workspace). |
| iconTooltip |
iconTooltip:
|
Type : string
|
|
Tooltip for the icon displayed in the filter toolbar. |
| identifier |
identifier:
|
Type : string
|
|
The identifier of the icon filter (has to correspond with the key of the attribute). |