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