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