RefreshPicker class

Signature

  1. export declare class RefreshPicker extends PureComponent<Props>

Import

  1. import { RefreshPicker } from '@grafana/ui';

Constructors

ConstructorModifiersDescription
constructor(props)Constructs a new instance of the RefreshPicker class

Properties

PropertyModifiersTypeDescription
isLivestatic(refreshInterval?: string | undefined) => boolean
liveOptionstatic{
label: string;
value: string;
ariaLabel: string;
}
offOptionstatic{
label: string;
value: string;
ariaLabel: string;
}
onChangeSelect(item: SelectableValue<string>) => void

Methods

MethodModifiersDescription
getVariant()
render()

constructor(props)

Constructs a new instance of the RefreshPicker class

Signature

  1. constructor(props: Props);

Parameters

ParameterTypeDescription
propsProps

isLive property

Signature

  1. static isLive: (refreshInterval?: string | undefined) => boolean;

liveOption property

Signature

  1. static liveOption: {
  2. label: string;
  3. value: string;
  4. ariaLabel: string;
  5. };

offOption property

Signature

  1. static offOption: {
  2. label: string;
  3. value: string;
  4. ariaLabel: string;
  5. };

onChangeSelect property

Signature

  1. onChangeSelect: (item: SelectableValue<string>) => void;

getVariant method

Signature

  1. getVariant(): ToolbarButtonVariant;

Returns:

ToolbarButtonVariant

render method

Signature

  1. render(): JSX.Element;

Returns:

JSX.Element