Skip to main content

NumberPicker

Container properties

All component configurations support Container properties at the first level.

Special container properties props

NumberPicker supports validation container properties other than public container properties

Component properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️The className of the component
styleobjectThe style of the component
minnumberminimum value
maxnumbermaximum value
stepnumber1Each time you change the number of steps, it can be a decimal
precisionnumberNumerical accuracy
formatOptions{ currency: string }All properties of Intl.NumberFormat

All the remaining componentsProps will be passed to the component root element (InputNumber).

validation

NameTypeDefaultDescription
requiredboolfalserequired
minValuenumberMin
maxValueboolMaximum

JS API

The interface obtained through formApi.getFieldApi() is as follows:

NameTypeDescription
nodeHTML ElementComponent root DOM element