Portal class

Signature

  1. export declare class Portal extends PureComponent<Props>

Import

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

Constructors

ConstructorModifiersDescription
constructor(props)Constructs a new instance of the Portal class

Properties

PropertyModifiersTypeDescription
nodeHTMLElement
portalRootHTMLElement

Methods

MethodModifiersDescription
componentWillUnmount()
render()

constructor(props)

Constructs a new instance of the Portal class

Signature

  1. constructor(props: Props);

Parameters

ParameterTypeDescription
propsProps

node property

Signature

  1. node: HTMLElement;

portalRoot property

Signature

  1. portalRoot: HTMLElement;

componentWillUnmount method

Signature

  1. componentWillUnmount(): void;

Returns:

void

render method

Signature

  1. render(): React.ReactPortal;

Returns:

React.ReactPortal