@univerjs/design v0.5.0-beta.1 • Docs
Interface: IInputNumberProps
Properties
Property | Type | Description | Defined in |
---|---|---|---|
className? | string | The className of the input | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:27 |
controls? | boolean | Whether to show the up and down buttons Default true | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:65 |
disabled? | boolean | Whether the input is disabled Default false | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:59 |
max? | number | The maximum value of the input | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:37 |
min? | number | The minimum value of the input | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:42 |
onBlur? | (e : FocusEvent <HTMLInputElement , Element >) => void | Callback when user blur | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:83 |
onChange? | (value : null | number ) => void | Callback when user input | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:95 |
onClick? | (e : MouseEvent <HTMLInputElement , MouseEvent >) => void | Callback when user click | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:71 |
onFocus? | (e : FocusEvent <HTMLInputElement , Element >) => void | Callback when user focus | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:77 |
onKeyDown? | (e : KeyboardEvent <HTMLInputElement >) => void | Callback when user press a key | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:89 |
onPressEnter? | KeyboardEventHandler <HTMLInputElement > | Callback when user press enter Param | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:101 |
precision? | number | The precision of the input | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:53 |
step? | number | The step of the input Default 1 | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:48 |
value? | null | number | The input content value | submodules/univer/packages/design/src/components/input-number/InputNumber.tsx:32 |