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

LogMessageAnsi class

Signature

typescript
export declare class LogMessageAnsi extends PureComponent<Props, State> 

Import

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

Properties

PropertyModifiersTypeDescription
stateState

Methods

MethodModifiersDescription
getDerivedStateFromProps(props, state)static
render()

state property

Signature

typescript
state: State;

getDerivedStateFromProps method

Signature

typescript
static getDerivedStateFromProps(props: Props, state: State): {
        chunks: ({
            style: Style;
            text: any;
        } | {
            text: any;
            style?: undefined;
        })[];
        prevValue: string;
    } | null;

Parameters

ParameterTypeDescription
propsProps
stateState

Returns:

{ chunks: ({ style: Style; text: any; } | { text: any; style?: undefined; })[]; prevValue: string; } | null

render method

Signature

typescript
render(): (string | JSX.Element)[];

Returns:

(string | JSX.Element)[]