Skip to content

EntityAttr class

Represents entity attribute.

MetaEntityAttr


The default constructor. ⊕ new EntityAttr(entity: Entity): EntityAttr



The caption.

● caption: string


The caption in plural form.

● captionPlural: string


● dataAttr: string


● dataType: DataType


The default editor.

● defaultEditor: ValueEditor


The default operator.

● defaultOperator: string


The description.

● description: string


The display format for the attribute

● displayFormat?: string


The parent

● entity: Entity


The attribute expression.

● expr: string


The id.

● id: string


The value indicating wether the attribute is editable.

● isEditable: boolean


The value indicating wether the attribute is a primary key.

● isForeignKey: boolean


The value indicating wether the attribute can be null key.

● isNullable: boolean


The value indicating wether the attribute is a primary key.

● isPrimaryKey: boolean


The kind.

● kind: EntityAttrKind


The lookupAttr.

● lookupAttr: string


● lookupDataAttr: string


● lookupEntity: string


The list of operators which can be applied for this attribute.

● operators: string[]


The parameters associated with this entity attribute

● params: QueryParam[] = []


The value indicating wether the attribute is shown in Lookup Editor.

● showInLookup: boolean


The value indicating wether the attribute is shown create page.

● showOnCreate: boolean


The value indicating wether the attribute is shown edit page.

● showOnEdit: boolean


The value indicating wether the attribute is shown on view page.

● showOnView: boolean


● size: number


The value indicating whether the attribute can be used in query conditions.

● useInConditions: boolean


The value indicating whether the attribute can be used in result columns (SELECT clause).

● useInResult: boolean


The value indicating whether the attribute can be used in sorting.

● useInSorting: boolean


User data

● userData?: string



Loads entity attribute from JSON representation object.

▸ loadFromData(model: DataModel,data: EntityAttrData): void

Returns void