QuantityEditorSpec Variable @beta

Editor specification for quantity values based on IModelApp.quantityFormatter.

Note: value provided to onChange might have mismatching displayValue and rawValue. This can happen when input is invalid, some examples:

  • input is not numeric. input abc -> { displayValue: "abc", rawValue: undefined }
  • input is smaller than property constraints. input: 2 in, minimumValue is 1 m -> { displayValue: 2 in, rawValue: 1 }
  • input is larger than property constraints. input: 6 m, maximumValue is 5 m -> { displayValue: 6 m, rawValue: 5 }

Type

EditorSpec

Default Value

...``` ### Defined in - <span class="defined-in"><a href="https://github.com/iTwin/appui/blob/352ab7584465c175b19660cf3b5581e9bd239f48/ui/imodel-components-react/src/imodel-components-react/inputs/new-editors/QuantityEditor.tsx#L35" target="_blank">ui/imodel-components-react/src/imodel-components-react/inputs/new-editors/QuantityEditor.tsx</a></span> Line 35

Last Updated: 01 June, 2026