Menu

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.

Enterprise Open source

Portal class

Signature

typescript
export declare class Portal extends PureComponent<Props> 

Import

typescript
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

typescript
constructor(props: Props);

Parameters

ParameterTypeDescription
propsProps

node property

Signature

typescript
node: HTMLElement;

portalRoot property

Signature

typescript
portalRoot: HTMLElement;

componentWillUnmount method

Signature

typescript
componentWillUnmount(): void;

Returns:

void

render method

Signature

typescript
render(): React.ReactPortal;

Returns:

React.ReactPortal