- Preparing search index...
- The search index is not available
docs.hg.fi
- useNumberField(label: string, key: string, change: FieldChangeCallback<number>, changeState: FieldChangeCallback<FormFieldState>, propsValue: number, isRequired: boolean, propsMinValue: number, propsMaxValue: number, toNumber: ToNumberCallback, stringifyNumber: StringifyNumberCallback): {
fieldState: FormFieldState;
label: string;
onChangeCallback: ((event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void);
value: string;
}
-
Parameters
-
label: string
-
key: string
-
-
-
propsValue: number
-
isRequired: boolean
-
propsMinValue: number
-
propsMaxValue: number
-
-
Returns {
fieldState: FormFieldState;
label: string;
onChangeCallback: ((event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void);
value: string;
}
-
-
label: string
-
onChangeCallback: ((event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void)
-
- (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>): void
-
Parameters
-
event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
Returns void
-
value: string