mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
83 lines
1.8 KiB
Markdown
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>() => void</code> | |
|
||
|
| [showModal](#showmodal-property) | | <code>(component: React.ComponentType<any>, props: any) => 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`
|
||
|
|