GraphSeriesToggler class

Signature

  1. export declare class GraphSeriesToggler extends React.Component<GraphSeriesTogglerProps, GraphSeriesTogglerState>

Import

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

Constructors

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

Methods

MethodModifiersDescription
componentDidUpdate(prevProps)
onSeriesToggle(label, event)
render()

constructor(props)

Constructs a new instance of the GraphSeriesToggler class

Signature

  1. constructor(props: GraphSeriesTogglerProps);

Parameters

ParameterTypeDescription
propsGraphSeriesTogglerProps

componentDidUpdate method

Signature

  1. componentDidUpdate(prevProps: Readonly<GraphSeriesTogglerProps>): void;

Parameters

ParameterTypeDescription
prevPropsReadonly<GraphSeriesTogglerProps>

Returns:

void

onSeriesToggle method

Signature

  1. onSeriesToggle(label: string, event: React.MouseEvent<HTMLElement>): void;

Parameters

ParameterTypeDescription
labelstring
eventReact.MouseEvent<HTMLElement>

Returns:

void

render method

Signature

  1. render(): JSX.Element;

Returns:

JSX.Element