File

src/lib/shared/interfaces/icon-input.interface.ts

Description

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; }, },

Index

Properties

Properties

active
active: boolean
Type : boolean
Optional

Flag if the icon is chosen as active in the icon filter.

activeIconColor
activeIconColor: "status-red" | "status-green" | "status-orange" | "status-violet" | "primary" | "black"
Type : "status-red" | "status-green" | "status-orange" | "status-violet" | "primary" | "black"

The color of the icon if it is active.

assignmentCondition
assignmentCondition: function
Type : function

The assignmentCondition is used to define the condition for the icon filter (which data item gets the icon note).

displayedString
displayedString: function
Type : function

The displayedString is used to define the property, which is displayed in the note box.

icon
icon: string
Type : string

The icon is limited by the talenra-icon library (https://gitlab.svanet.ch/talenra/talenra-workspace).

iconTooltip
iconTooltip: string
Type : string

Tooltip for the icon displayed in the filter toolbar.

identifier
identifier: string
Type : string

The identifier of the icon filter (has to correspond with the key of the attribute).

results matching ""

    No results matching ""