Skip to main content

IProperty

Represents a property. See also Property.

Properties

PropertyTypeDescription
caption?string

Custom field caption shown in [PropertyGrid]

Deprecated

The property will be removed soon. Use friendlyName instead

category?stringCorresponding category on the context panel
choices?string[]List of choices. Applicable to string properties only
columnTypeFilter?null | "string" | "bigint" | "object" | "int" | "double" | "bool" | "byte_array" | "datetime" | "qnum" | "dataframe" | "categorical" | "numerical"Filter for columns, can be numerical, categorical or directly a column type (string, int...) Applicable when type = Column
defaultValue?anyDefault value used for deserialization and cloning. See also initialValue.
description?stringProperty description
editor?stringCustom editor (such as slider or text area)
fieldName?stringName of the corresponding JavaScript field. No need to specify it if it is the same as name.
format?stringValue format, such as '0.000'
friendlyName?stringCustom field friendly name shown in [PropertyGrid]
initialValue?anyInitial value used when initializing UI. See also defaultValue
inputType?stringProperty input type
max?numberMaximum value. Applicable to numerical properties only
min?numberMinimum value. Applicable to numerical properties only
name?stringProperty name
nullable?booleanWhether an empty value is allowed. This is used by validators.
options?anyAdditional options.
semType?stringSemantic type
showPlusMinus?booleanWhether a plus/minus clicker appears next to the number input. Applies to numerical columns only.
showSlider?booleanWhether a slider appears next to the number input. Applies to numerical columns only.
step?numberStep to be used in a slider. Only applies to numerical properties.
tags?any-
type?stringProperty data type. See TYPE.
units?stringUnits of measurement. See also: [postfix]
userEditable?booleanWhether the property should be editable via the UI
validators?string[]

List of validators. It can include [NAMED_VALIDATORS] as well as any pre-defined function names. Signature: validator(x: DG.Type): string | null.

[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)
viewer?string-