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
Property | Modifiers | Type | Description |
---|---|---|---|
state | State |
Methods
Method | Modifiers | Description |
---|---|---|
getDerivedStateFromProps(props, state) | static | |
render() |
state property
Signature
state: State;
getDerivedStateFromProps method
Signature
static getDerivedStateFromProps(props: Props, state: State): {
chunks: ({
style: Style;
text: string;
} | {
text: string;
style?: undefined;
})[];
prevValue: string;
} | null;
Parameters
Parameter | Type | Description |
---|---|---|
props | Props | |
state | State |
Returns:
{
chunks: ({
style: Style;
text: string;
} | {
text: string;
style?: undefined;
})[];
prevValue: string;
} | null
render method
Signature
render(): (string | JSX.Element)[];
Returns:
(string | JSX.Element)[]