Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
DatePickerWithInputProps interface
Signature
export interface DatePickerWithInputProps extends Omit<InputProps, 'ref' | 'value' | 'onChange'>
Import
import { DatePickerWithInputProps } from '@grafana/ui';
Properties
Property | Type | Description |
---|---|---|
closeOnSelect | boolean | Hide the calendar when date is selected |
minDate | Date | |
onChange | (value: Date | string) => void | |
placeholder | string | |
value | Date | string |
closeOnSelect property
Hide the calendar when date is selected
Signature
closeOnSelect?: boolean;
minDate property
Signature
minDate?: Date;
onChange property
Signature
onChange: (value: Date | string) => void;
placeholder property
Signature
placeholder?: string;
value property
Signature
value?: Date | string;