The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grafana/docs/sources/packages_api/ui/modalsprovider.md

83 lines
1.8 KiB

+++
# -----------------------------------------------------------------------
# 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`