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

ModalsProvider class

Signature

typescript
export declare class ModalsProvider extends React.Component<ModalsProviderProps, ModalsContextState> 

Import

typescript
import { ModalsProvider } from '@grafana/ui';

Constructors

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

Properties

PropertyModifiersTypeDescription
hideModal() => void
showModal(component: React.ComponentType<any>, props: any) => void

Methods

MethodModifiersDescription
render()

constructor(props)

Constructs a new instance of the ModalsProvider class

Signature

typescript
constructor(props: ModalsProviderProps);

Parameters

ParameterTypeDescription
propsModalsProviderProps

hideModal property

Signature

typescript
hideModal: () => void;

showModal property

Signature

typescript
showModal: (component: React.ComponentType<any>, props: any) => void;

render method

Signature

typescript
render(): JSX.Element;

Returns:

JSX.Element