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.
LogMessageAnsi class
Signature
export declare class LogMessageAnsi extends PureComponent<Props, State>
Import
import { LogMessageAnsi } from '@grafana/ui';
Properties
Methods
state property
Signature
state: State;
getDerivedStateFromProps method
Signature
static getDerivedStateFromProps(props: Props, state: State): {
chunks: ({
style: Style;
text: any;
} | {
text: any;
style?: undefined;
})[];
prevValue: string;
} | null;
Parameters
Returns:
{
chunks: ({
style: Style;
text: any;
} | {
text: any;
style?: undefined;
})[];
prevValue: string;
} | null
render method
Signature
render(): (string | JSX.Element)[];
Returns:
(string | JSX.Element)[]