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

TimeRangePicker variable

TimeRangePicker variable

Signature

typescript
TimeRangePicker: React.FunctionComponent<{
    fiscalYearStartMonth?: number | undefined;
    timeZone?: string | undefined;
    value: TimeRange;
    onChange: (timeRange: TimeRange) => void;
    history?: TimeRange[] | undefined;
    onChangeTimeZone: (timeZone: TimeZone) => void;
    onChangeFiscalYearStartMonth?: ((month: number) => void) | undefined;
    hideQuickRanges?: boolean | undefined;
    onMoveBackward: () => void;
    onMoveForward: () => void;
    onZoom: () => void;
    timeSyncButton?: JSX.Element | undefined;
    isSynced?: boolean | undefined;
    hideText?: boolean | undefined;
}>

Import

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