Skip to main content

IProperty

Defined in: src/entities/property.ts:18

Represents a property. See also Property.

Properties

PropertyTypeDescriptionDefined in
caption?stringCustom field caption shown in [PropertyGrid] Deprecated The property will be removed soon. Use friendlyName insteadsrc/entities/property.ts:87
category?stringCorresponding category on the context panelsrc/entities/property.ts:69
choices?string[]List of choices. Applicable to string properties onlysrc/entities/property.ts:57
columnTypeFilter?"string" | "bigint" | "object" | "int" | "double" | "bool" | "byte_array" | "datetime" | "qnum" | "dataframe" | "categorical" | "numerical" | nullFilter for columns, can be numerical, categorical or directly a column type (string, int...) Applicable when type = Columnsrc/entities/property.ts:102
defaultValue?anyDefault value used for deserialization and cloning. See also initialValue.src/entities/property.ts:63
description?stringProperty descriptionsrc/entities/property.ts:33
editor?stringCustom editor (such as slider or text area)src/entities/property.ts:66
fieldName?stringName of the corresponding JavaScript field. No need to specify it if it is the same as name.src/entities/property.ts:93
format?stringValue format, such as '0.000'src/entities/property.ts:72
friendlyName?stringCustom field friendly name shown in [PropertyGrid]src/entities/property.ts:90
initialValue?anyInitial value used when initializing UI. See also defaultValuesrc/entities/property.ts:60
inputType?stringProperty input typesrc/entities/property.ts:27
max?numberMaximum value. Applicable to numerical properties onlysrc/entities/property.ts:45
min?numberMinimum value. Applicable to numerical properties onlysrc/entities/property.ts:42
name?stringProperty namesrc/entities/property.ts:21
nullable?booleanWhether an empty value is allowed. This is used by validators.src/entities/property.ts:30
options?anyAdditional options.src/entities/property.ts:98
semType?stringSemantic typesrc/entities/property.ts:36
showPlusMinus?booleanWhether a plus/minus clicker appears next to the number input. Applies to numerical columns only.src/entities/property.ts:54
showSlider?booleanWhether a slider appears next to the number input. Applies to numerical columns only.src/entities/property.ts:51
step?numberStep to be used in a slider. Only applies to numerical properties.src/entities/property.ts:48
tags?any-src/entities/property.ts:95
type?stringProperty data type. See TYPE.src/entities/property.ts:24
units?stringUnits of measurement. See also: [postfix]src/entities/property.ts:39
userEditable?booleanWhether the property should be editable via the UIsrc/entities/property.ts:75
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)src/entities/property.ts:83
viewer?string-src/entities/property.ts:105