FieldPropertyType Type Alias
FieldPropertyType = "quantity" | "coordinate" | "string" | "boolean" | "datetime" | "int-enum" | "string-enum"
Enumerates the different kinds of Property values that can be used as the basis for a FieldRun's display string. A field's property type is derived from the property's PrimitiveType and other attributes like its PrimitiveOrEnumPropertyBase.extendedTypeName. The conversion of the raw property value into a display string can be customized by different FieldFormatOptions based on its type. The following types are currently recognized:
- "quantity": an often-unitized scalar value like a distance or area, formatted using a quantity Format.
- "coordinate": a 2- or 3-dimensional point, with each component formatted as a "quantity".
- "boolean": a true or false value.
- "datetime": an ECMAScript Date.
- "int-enum": an integer EnumerationProperty formatted using the enum value's display label.
- "string-enum": a string EnumerationProperty formatted using the enum value's display label.
- "string": a value convertible to a string.
@note Currently, only formatting of "string" and "datetime" types is implemented. Other types are converted to and formatted as "string".
Defined in
Last Updated: 20 September, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.