serializeStateToUrlParam() function

serializeStateToUrlParam() function

Create an string that is used in URL to represent the Explore state. This is basically just a stringified json that is that used as a state of a single Explore pane so it does not represent full Explore URL.

Signature

  1. export declare function serializeStateToUrlParam(urlState: ExploreUrlState, compact?: boolean): string;

Import

  1. import { serializeStateToUrlParam } from '@grafana/data';

Parameters

ParameterTypeDescription
urlStateExploreUrlState
compactbooleanthis parameter is deprecated and will be removed in a future release.

Returns:

string