ESpinBox Spinbox
Examples
Spinbox
Spinbox
Properties
alignstringHorizontal alignment of the input number.
"left" / "center""right"
"center"controlsboolShow numeric increment and decrement controls.
truecontrolsPositionstringPosition of the step buttons relative to the input.
"both" / "right"
"both"decIconintIcon used by the component.
EIcons.*
0 (no icon)
controlsPosition === "right" ? EIcons.CHEVRON_DOWN : EIcons.MINUSdisabledScientificboolReject scientific notation input.
falseenabledboolAllow interaction; false disables the control.
trueformattervarFormatting callback converting a value to displayed text.
nullheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeighticonSizeintSize of the icon, option or interactive part in pixels.
Dynamic bindingincIconintIcon used by the component.
EIcons.*
0 (no icon)
controlsPosition === "right" ? EIcons.CHEVRON_UP : EIcons.PLUSindicatorHeightintSize of the icon, option or interactive part in pixels.
Dynamic bindingindicatorWidthintSize of the icon, option or interactive part in pixels.
Dynamic bindingnumberFromrealLower or upper numeric bound.
0numberSteprealIncrement or decrement step for numeric input.
1numberTorealLower or upper numeric bound.
100numberValuevarCurrent actual numeric input value.
0parservarInput parser converting displayed text to the underlying value.
nullplaceholderTextstringPlaceholder shown when the value is empty.
""precisionintNumber of decimal places.
0prefixstringPrefix or suffix text; Mention prefix is a trigger character or character array.
""prefixComponentComponentComponent slot for custom prefix; null uses the default content. See this page’s examples for delegate context.
nullreadOnlyboolPrevent user editing or rating while allowing programmatic value changes.
falseselectByMouseboolAllow mouse text selection.
falsesizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaultstepStrictlyboolKeep numeric changes aligned to step multiples.
falsestyleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.DefaultsuffixstringPrefix or suffix text; Mention prefix is a trigger character or character array.
""suffixComponentComponentComponent slot for custom suffix; null uses the default content. See this page’s examples for delegate context.
nulltextColorcolorText color.
Dynamic bindingvalidateEventboolRequest enclosing-form validation when the value changes.
truevalidationMessagestringValidation message or externally supplied error text.
""validationStateintInput validation state.
EValidationState.NoneEValidationState.SuccessEValidationState.WarningEValidationState.Error
EValidationState.NonevalueOnClearvarValue after clearing, or a function returning it; inherits configuration by default.
Inherited; default nullvisibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthemptyboolRead onlyWhether the current value is considered empty.
Computed at runtimehasValidationErrorboolRead onlyWhether validation state is Error.
Computed at runtimenumberScaleintRead onlyInteger scale used for decimal calculations.
Computed at runtimeSignals
inputRejected(string text)Emitted when input cannot be converted to a valid value; text is the rejected input.
numberModified(real numberValue)Emitted after the user changes the number; numberValue is the new number.
businessValueModified(var numberValue)Emitted after the user changes the business value; numberValue is the value used by the application.
Methods
commitInput(input)Commit the input text; invalid input preserves the previous value and emits inputRejected.