@univerjsdesigninterfacesIinputnumberprops

@univerjs/design v0.5.0-beta.1Docs


Interface: IInputNumberProps

Properties

PropertyTypeDescriptionDefined in
className?stringThe className of the inputsubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:27
controls?booleanWhether to show the up and down buttons Default truesubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:65
disabled?booleanWhether the input is disabled Default falsesubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:59
max?numberThe maximum value of the inputsubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:37
min?numberThe minimum value of the inputsubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:42
onBlur?(e: FocusEvent<HTMLInputElement, Element>) => voidCallback when user blursubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:83
onChange?(value: null | number) => voidCallback when user inputsubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:95
onClick?(e: MouseEvent<HTMLInputElement, MouseEvent>) => voidCallback when user clicksubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:71
onFocus?(e: FocusEvent<HTMLInputElement, Element>) => voidCallback when user focussubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:77
onKeyDown?(e: KeyboardEvent<HTMLInputElement>) => voidCallback when user press a keysubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:89
onPressEnter?KeyboardEventHandler<HTMLInputElement>Callback when user press enter Paramsubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:101
precision?numberThe precision of the inputsubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:53
step?numberThe step of the input Default 1submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:48
value?null | numberThe input content valuesubmodules/univer/packages/design/src/components/input-number/InputNumber.tsx:32