- Preparing search index...
- The search index is not available
docs.hg.fi
- useStringField(label: string, key: string, change: FieldChangeCallback<string>, changeState: FieldChangeCallback<FormFieldState>, propsValue: string, isRequired: boolean, propsMinLength: number, propsMaxLength: number): {
fieldState: FormFieldState;
label: string;
onChangeCallback: ((event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void);
value: string;
}
-
Parameters
-
label: string
-
key: string
-
-
-
propsValue: string
-
isRequired: boolean
-
propsMinLength: number
-
propsMaxLength: 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