grafana/docs/sources/packages_api/ui/modalsprovider.md
Marcus Andersson cc3fc18076
Docs: enable packages reference docs for 7-beta (#23953)
* added packages reference menu item.

* removed the draft flag.

* Updated docs by running script.
2020-04-28 09:53:58 +02:00

83 lines
1.8 KiB
Markdown

+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "ModalsProvider"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++
## ModalsProvider class
<b>Signature</b>
```typescript
export declare class ModalsProvider extends React.Component<ModalsProviderProps, ModalsContextState>
```
<b>Import</b>
```typescript
import { ModalsProvider } from '@grafana/ui';
```
<b>Constructors</b>
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [constructor(props)](#constructor-props) | | Constructs a new instance of the <code>ModalsProvider</code> class |
<b>Properties</b>
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [hideModal](#hidemodal-property) | | <code>() =&gt; void</code> | |
| [showModal](#showmodal-property) | | <code>(component: React.ComponentType&lt;any&gt;, props: any) =&gt; void</code> | |
<b>Methods</b>
| Method | Modifiers | Description |
| --- | --- | --- |
| [render()](#render-method) | | |
### constructor(props)
Constructs a new instance of the `ModalsProvider` class
<b>Signature</b>
```typescript
constructor(props: ModalsProviderProps);
```
<b>Parameters</b>
| Parameter | Type | Description |
| --- | --- | --- |
| props | <code>ModalsProviderProps</code> | |
### hideModal property
<b>Signature</b>
```typescript
hideModal: () => void;
```
### showModal property
<b>Signature</b>
```typescript
showModal: (component: React.ComponentType<any>, props: any) => void;
```
### render method
<b>Signature</b>
```typescript
render(): JSX.Element;
```
<b>Returns:</b>
`JSX.Element`