Skip to main content

NamedProperty

Defined in: js-api/src/u2core/protocol.ts:64

A property whose name is guaranteed — what descriptors and bind steps carry.

Extends

Extended by

Properties

PropertyTypeDescriptionOverridesInherited fromDefined in
caption?stringCustom field caption shown in [PropertyGrid] Deprecated The property will be removed soon. Use friendlyName instead-IProperty.captionjs-api/src/entities/property-meta.ts:73
category?stringCorresponding category on the context panel; groups the property in a property panel.-IProperty.categoryjs-api/src/entities/property-meta.ts:63
choices?string[]List of choices. Applicable to string properties only-IProperty.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-IProperty.columnTypeFilterjs-api/src/entities/property-meta.ts:111
defaultValue?anyDefault value used for deserialization and cloning. See also initialValue.-IProperty.defaultValuejs-api/src/entities/property-meta.ts:90
description?stringProperty description-IProperty.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).-IProperty.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.-IProperty.fieldNamejs-api/src/entities/property-meta.ts:101
format?stringValue format, such as '0.000', applied through DG.format where the platform is loaded.-IProperty.formatjs-api/src/entities/property-meta.ts:66
friendlyName?stringCustom field friendly name shown in [PropertyGrid]-IProperty.friendlyNamejs-api/src/entities/property-meta.ts:69
get?PropertyGetterReads the property value off an object. A property with no set renders read-only.-IProperty.getjs-api/src/entities/property-meta.ts:81
initialValue?anyInitial value used when initializing UI. See also defaultValue-IProperty.initialValuejs-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.-IProperty.inputTypejs-api/src/entities/property-meta.ts:26
max?numberMaximum value. Applicable to numerical properties only-IProperty.maxjs-api/src/entities/property-meta.ts:44
min?numberMinimum value. Applicable to numerical properties only-IProperty.minjs-api/src/entities/property-meta.ts:41
namestringProperty nameIProperty.name-js-api/src/u2core/protocol.ts:65
nullable?booleanWhether an empty value is allowed. This is used by validators.-IProperty.nullablejs-api/src/entities/property-meta.ts:29
options?anyAdditional options.-IProperty.optionsjs-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).-IProperty.propertyTypejs-api/src/entities/property-meta.ts:22
semType?stringSemantic type-IProperty.semTypejs-api/src/entities/property-meta.ts:35
set?PropertySetterWrites the property value to an object.-IProperty.setjs-api/src/entities/property-meta.ts:84
showPlusMinus?booleanWhether a plus/minus clicker appears next to the number input. Applies to numerical columns only.-IProperty.showPlusMinusjs-api/src/entities/property-meta.ts:53
showSlider?booleanWhether a slider appears next to the number input. Applies to numerical columns only.-IProperty.showSliderjs-api/src/entities/property-meta.ts:50
step?numberStep to be used in a slider. Only applies to numerical properties.-IProperty.stepjs-api/src/entities/property-meta.ts:47
tags?any--IProperty.tagsjs-api/src/entities/property-meta.ts:103
type?stringProperty data type. See TYPE.-IProperty.typejs-api/src/entities/property-meta.ts:19
units?stringUnits of measurement. See also: [postfix]-IProperty.unitsjs-api/src/entities/property-meta.ts:38
userEditable?booleanWhether the property should be editable via the UI-IProperty.userEditablejs-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.-IProperty.validators
valueValidators?ValueValidator<any>[]List of value validators (functions that take a value and return error message or null)-IProperty.valueValidatorsjs-api/src/entities/property-meta.ts:98
viewer?string--IProperty.viewerjs-api/src/entities/property-meta.ts:113