This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/uiDatePickerWithInputProps

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
onChange (value: Date | string) => void
placeholder string
value Date | string

closeOnSelect property

Hide the calendar when date is selected

Signature

closeOnSelect?: boolean;

onChange property

Signature

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

placeholder property

Signature

placeholder?: string;

value property

Signature

value?: Date | string;