ModalsProvider class

Signature

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

Import

  1. 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

  1. constructor(props: ModalsProviderProps);

Parameters

ParameterTypeDescription
propsModalsProviderProps

hideModal property

Signature

  1. hideModal: () => void;

showModal property

Signature

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

render method

Signature

  1. render(): JSX.Element;

Returns:

JSX.Element