Menu

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.

Enterprise Open source

DatePickerWithInputProps interface

Signature

typescript
export interface DatePickerWithInputProps extends Omit<InputProps, 'ref' | 'value' | 'onChange'> 

Import

typescript
import { DatePickerWithInputProps } from '@grafana/ui';

Properties

PropertyTypeDescription
closeOnSelectbooleanHide the calendar when date is selected
onChange(value: Date | string) => void
placeholderstring
valueDate | string

closeOnSelect property

Hide the calendar when date is selected

Signature

typescript
closeOnSelect?: boolean;

onChange property

Signature

typescript
onChange: (value: Date | string) => void;

placeholder property

Signature

typescript
placeholder?: string;

value property

Signature

typescript
value?: Date | string;