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

API Reference@grafana/uiTimeRangePickerProps

TimeRangePickerProps interface

Signature

export interface TimeRangePickerProps extends Themeable 

Import

import { TimeRangePickerProps } from '@grafana/ui';

Properties

Property Type Description
hideQuickRanges boolean
hideText boolean
history TimeRange[]
isSynced boolean
onChange (timeRange: TimeRange) => void
onChangeTimeZone (timeZone: TimeZone) => void
onMoveBackward () => void
onMoveForward () => void
onZoom () => void
timeSyncButton JSX.Element
timeZone TimeZone
value TimeRange

hideQuickRanges property

Signature

hideQuickRanges?: boolean;

hideText property

Signature

hideText?: boolean;

history property

Signature

history?: TimeRange[];

isSynced property

Signature

isSynced?: boolean;

onChange property

Signature

onChange: (timeRange: TimeRange) => void;

onChangeTimeZone property

Signature

onChangeTimeZone: (timeZone: TimeZone) => void;

onMoveBackward property

Signature

onMoveBackward: () => void;

onMoveForward property

Signature

onMoveForward: () => void;

onZoom property

Signature

onZoom: () => void;

timeSyncButton property

Signature

timeSyncButton?: JSX.Element;

timeZone property

Signature

timeZone?: TimeZone;

value property

Signature

value: TimeRange;