UNPKG

@grafana/ui

Version:

Grafana Components Library

27 lines (26 loc) 836 B
import { PureComponent } from 'react'; import { SelectOptionItem } from '../Select/Select'; export declare const offOption: { label: string; value: string; }; export declare const liveOption: { label: string; value: string; }; export declare const defaultIntervals: string[]; export declare const isLive: (refreshInterval: string) => boolean; export interface Props { intervals?: string[]; onRefresh: () => any; onIntervalChanged: (interval: string) => void; value?: string; tooltip: string; hasLiveOption?: boolean; } export declare class RefreshPicker extends PureComponent<Props> { constructor(props: Props); intervalsToOptions: (intervals: string[] | undefined) => SelectOptionItem<string>[]; onChangeSelect: (item: SelectOptionItem<string>) => void; render(): JSX.Element; }