src/app/core/entity/entity-config.ts
Dynamic configuration for a entity. This allows to change entity metadata based on the configuration.
Properties |
|
| attributes |
attributes:
|
Type : { }
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:13
|
|
A list of attributes that will be dynamically added/overwritten to the entity. |
| color |
color:
|
Type : string | ColorMapping[]
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:46
|
|
color used for to highlight this entity type across the app. |
| enableUserAccounts |
enableUserAccounts:
|
Type : boolean
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:67
|
|
Indicates if entities of this type can have associated user accounts. Used to dynamically display user account management panels and features. |
| extends |
extends:
|
Type : string
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:56
|
|
when a new entity is created, all properties from this class will also be available |
| hasPII |
hasPII:
|
Type : boolean
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:61
|
|
whether the type can contain personally identifiable information (PII) |
| icon |
icon:
|
Type : string
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:41
|
|
icon used to visualize the entity type |
| label |
label:
|
Type : string
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:31
|
|
human-readable name/label of the entity in the UI |
| labelPlural |
labelPlural:
|
Type : string
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:36
|
|
human-readable name/label of the entity in the UI when referring to multiple |
| route |
route:
|
Type : string
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:51
|
|
base route of views for this entity type |
| toBlockDetailsAttributes |
toBlockDetailsAttributes:
|
Type : EntityBlockConfig
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:26
|
|
Details to be displayed of this entity as a tooltip. |
| toStringAttributes |
toStringAttributes:
|
Type : string[]
|
| Optional |
|
Defined in src/app/core/entity/entity-config.ts:21
|
|
A list of attributes which should be shown when calling the (optional) the default is the ID of the entity ( |
import { EntitySchemaField } from "./schema/entity-schema-field";
import { EntityBlockConfig } from "../basic-datatypes/entity/entity-block/entity-block-config";
import { ColorMapping } from "./model/entity";
/**
* Dynamic configuration for a entity.
* This allows to change entity metadata based on the configuration.
*/
export interface EntityConfig {
/**
* A list of attributes that will be dynamically added/overwritten to the entity.
*/
attributes?: { [key: string]: EntitySchemaField };
/**
* A list of attributes which should be shown when calling the `.toString()` method of this entity.
* E.g. showing the first and last name of a child.
*
* (optional) the default is the ID of the entity (`.entityId`)
*/
toStringAttributes?: string[];
/**
* Details to be displayed of this entity as a tooltip.
*/
toBlockDetailsAttributes?: EntityBlockConfig;
/**
* human-readable name/label of the entity in the UI
*/
label?: string;
/**
* human-readable name/label of the entity in the UI when referring to multiple
*/
labelPlural?: string;
/**
* icon used to visualize the entity type
*/
icon?: string;
/**
* color used for to highlight this entity type across the app.
*/
color?: string | ColorMapping[];
/**
* base route of views for this entity type
*/
route?: string;
/**
* when a new entity is created, all properties from this class will also be available
*/
extends?: string;
/**
* whether the type can contain personally identifiable information (PII)
*/
hasPII?: boolean;
/**
* Indicates if entities of this type can have associated user accounts.
* Used to dynamically display user account management panels and features.
*/
enableUserAccounts?: boolean;
}