Skip to main content

IProperty

Defined in: js-api/src/entities/property-meta.ts:78

Represents a property: the metadata plus accessors and behavior options. See also Property.

Extends

Extended by

Properties

PropertyTypeDescriptionInherited fromDefined in
caption?stringCustom field caption shown in [PropertyGrid] Deprecated The property will be removed soon. Use friendlyName insteadIPropertyMeta.captionjs-api/src/entities/property-meta.ts:73
category?stringCorresponding category on the context panel; groups the property in a property panel.IPropertyMeta.categoryjs-api/src/entities/property-meta.ts:63
choices?string[]List of choices. Applicable to string properties onlyIPropertyMeta.choicesjs-api/src/entities/property-meta.ts:56
columnTypeFilter?ColumnTypeFilter | nullFilter for columns, can be numerical, numerical_no_datetime, categorical, datetime, categorical_or_datetime, or directly a column type (string, int...) Applicable when type = Column-js-api/src/entities/property-meta.ts:111
defaultValue?anyDefault value used for deserialization and cloning. See also initialValue.-js-api/src/entities/property-meta.ts:90
description?stringProperty descriptionIPropertyMeta.descriptionjs-api/src/entities/property-meta.ts:32
editor?stringPlatform editor hint ('textarea', 'password', 'switch', 'slider'), consulted next, and only for the types Dart honors it for (input_base.dart:702-728).IPropertyMeta.editorjs-api/src/entities/property-meta.ts:60
fieldName?stringName of the corresponding JavaScript field. No need to specify it if it is the same as name.-js-api/src/entities/property-meta.ts:101
format?stringValue format, such as '0.000', applied through DG.format where the platform is loaded.IPropertyMeta.formatjs-api/src/entities/property-meta.ts:66
friendlyName?stringCustom field friendly name shown in [PropertyGrid]IPropertyMeta.friendlyNamejs-api/src/entities/property-meta.ts:69
get?PropertyGetterReads the property value off an object. A property with no set renders read-only.-js-api/src/entities/property-meta.ts:81
initialValue?anyInitial value used when initializing UI. See also defaultValue-js-api/src/entities/property-meta.ts:87
inputType?stringPlatform InputType ('Radio', 'Color', 'Tags'…): the editor named here wins over every other hint, as it does in input_base.dart:668.IPropertyMeta.inputTypejs-api/src/entities/property-meta.ts:26
max?numberMaximum value. Applicable to numerical properties onlyIPropertyMeta.maxjs-api/src/entities/property-meta.ts:44
min?numberMinimum value. Applicable to numerical properties onlyIPropertyMeta.minjs-api/src/entities/property-meta.ts:41
name?stringProperty nameIPropertyMeta.namejs-api/src/entities/property-meta.ts:16
nullable?booleanWhether an empty value is allowed. This is used by validators.IPropertyMeta.nullablejs-api/src/entities/property-meta.ts:29
options?anyAdditional options.-js-api/src/entities/property-meta.ts:106
propertyType?stringProperty data type; same as type, and read first where both appear (as on a DG.Property).IPropertyMeta.propertyTypejs-api/src/entities/property-meta.ts:22
semType?stringSemantic typeIPropertyMeta.semTypejs-api/src/entities/property-meta.ts:35
set?PropertySetterWrites the property value to an object.-js-api/src/entities/property-meta.ts:84
showPlusMinus?booleanWhether a plus/minus clicker appears next to the number input. Applies to numerical columns only.IPropertyMeta.showPlusMinusjs-api/src/entities/property-meta.ts:53
showSlider?booleanWhether a slider appears next to the number input. Applies to numerical columns only.IPropertyMeta.showSliderjs-api/src/entities/property-meta.ts:50
step?numberStep to be used in a slider. Only applies to numerical properties.IPropertyMeta.stepjs-api/src/entities/property-meta.ts:47
tags?any--js-api/src/entities/property-meta.ts:103
type?stringProperty data type. See TYPE.IPropertyMeta.typejs-api/src/entities/property-meta.ts:19
units?stringUnits of measurement. See also: [postfix]IPropertyMeta.unitsjs-api/src/entities/property-meta.ts:38
userEditable?booleanWhether the property should be editable via the UI-js-api/src/entities/property-meta.ts:116
validators?string[]List of validators. It can include [NAMED_VALIDATORS] as well as any pre-defined function names. Signature: validator(x: DG.Type): stringnull. [null] indicates that the value is valid, [string] describes a validation error.-
valueValidators?ValueValidator<any>[]List of value validators (functions that take a value and return error message or null)-js-api/src/entities/property-meta.ts:98
viewer?string--js-api/src/entities/property-meta.ts:113