LogMessageAnsi class

Signature

  1. export declare class LogMessageAnsi extends PureComponent<Props, State>

Import

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

Properties

PropertyModifiersTypeDescription
stateState

Methods

MethodModifiersDescription
getDerivedStateFromProps(props, state)static
render()

state property

Signature

  1. state: State;

getDerivedStateFromProps method

Signature

  1. static getDerivedStateFromProps(props: Props, state: State): {
  2. chunks: ({
  3. style: Style;
  4. text: any;
  5. } | {
  6. text: any;
  7. style?: undefined;
  8. })[];
  9. prevValue: string;
  10. } | null;

Parameters

ParameterTypeDescription
propsProps
stateState

Returns:

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

render method

Signature

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

Returns:

(string | JSX.Element)[]