- Preparing search index...
- The search index is not available
docs.hg.fi
- useDatePicker(label: string, key: string, change: FieldChangeCallback<string>, changeState: FieldChangeCallback<FormFieldState>, propsValue: string, isRequired: boolean, propsMinLength: number, propsMaxLength: number, dateFormat?: string): {
buildCalendar: ((value: Moment) => any[]);
calendarStyling: CalendarStylingCallback;
fieldState: FormFieldState;
label: string;
onChangeCallback: ((value: string) => void);
value: string;
}
-
Parameters
-
label: string
-
key: string
-
-
-
propsValue: string
-
isRequired: boolean
-
propsMinLength: number
-
propsMaxLength: number
-
Optional
dateFormat: string
Returns {
buildCalendar: ((value: Moment) => any[]);
calendarStyling: CalendarStylingCallback;
fieldState: FormFieldState;
label: string;
onChangeCallback: ((value: string) => void);
value: string;
}
-
buildCalendar: ((value: Moment) => any[])
-
- (value: Moment): any[]
-
Returns any[]
-
-
-
label: string
-
onChangeCallback: ((value: string) => void)
-
- (value: string): void
-
Returns void
-
value: string