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

JSONFormatter class

Signature

typescript
export declare class JSONFormatter extends PureComponent<Props> 

Import

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

Properties

PropertyModifiersTypeDescription
defaultPropsstatic{
open: number;
config: {
animateOpen: boolean;
};
}
renderJson() => void

Methods

MethodModifiersDescription
componentDidMount()
componentDidUpdate()
render()

defaultProps property

Signature

typescript
static defaultProps: {
        open: number;
        config: {
            animateOpen: boolean;
        };
    };

renderJson property

Signature

typescript
renderJson: () => void;

componentDidMount method

Signature

typescript
componentDidMount(): void;

Returns:

void

componentDidUpdate method

Signature

typescript
componentDidUpdate(): void;

Returns:

void

render method

Signature

typescript
render(): JSX.Element;

Returns:

JSX.Element