src/lib/shared/interfaces/data-item-id.interface.ts
Model to identify a data item with identifier (key of data item) and value. The identifier paired with the value is used to identify a specific data item.
When errorTitle is provided, the locked data item will display a clickable
lock icon that opens an infotip with the error information.
import { IDataItemId } from '@talenra/inbox';
lockedItem: IDataItemId = {
identifier: 'caseTypeName',
value: '1234352',
};import { IDataItemId } from '@talenra/inbox';
lockedItemWithError: IDataItemId = {
identifier: 'caseTypeName',
value: '1234352',
errorTitle: 'Validation Error',
errorDescription: 'Line 1\nLine 2\nLine 3', // Use \n for line breaks
};
Properties |
|
| errorDescription |
errorDescription:
|
Type : string
|
| Optional |
|
Error description for displaying error messages in the infotip.
Use |
| errorTitle |
errorTitle:
|
Type : string
|
| Optional |
|
Error title for displaying error messages in the infotip. |
| identifier |
identifier:
|
Type : string
|
|
Identifier key of the data item attribute, which is used to identify specific data item. |
| value |
value:
|
Type : string
|
|
Value which is accessed by the identifier. |