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/statspicker.md

100 lines
2.0 KiB

+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "StatsPicker"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++
## StatsPicker class
<b>Signature</b>
```typescript
export declare class StatsPicker extends PureComponent<Props>
```
<b>Import</b>
```typescript
import { StatsPicker } from '@grafana/ui';
```
<b>Properties</b>
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [checkInput](#checkinput-property) | | <code>() =&gt; void</code> | |
| [defaultProps](#defaultprops-property) | <code>static</code> | <code>Partial&lt;Props&gt;</code> | |
| [onSelectionChange](#onselectionchange-property) | | <code>(item: SelectableValue&lt;string&gt;) =&gt; void</code> | |
<b>Methods</b>
| Method | Modifiers | Description |
| --- | --- | --- |
| [componentDidMount()](#componentdidmount-method) | | |
| [componentDidUpdate(prevProps)](#componentdidupdate-method) | | |
| [render()](#render-method) | | |
### checkInput property
<b>Signature</b>
```typescript
checkInput: () => void;
```
### defaultProps property
<b>Signature</b>
```typescript
static defaultProps: Partial<Props>;
```
### onSelectionChange property
<b>Signature</b>
```typescript
onSelectionChange: (item: SelectableValue<string>) => void;
```
### componentDidMount method
<b>Signature</b>
```typescript
componentDidMount(): void;
```
<b>Returns:</b>
`void`
### componentDidUpdate method
<b>Signature</b>
```typescript
componentDidUpdate(prevProps: Props): void;
```
<b>Parameters</b>
| Parameter | Type | Description |
| --- | --- | --- |
| prevProps | <code>Props</code> | |
<b>Returns:</b>
`void`
### render method
<b>Signature</b>
```typescript
render(): JSX.Element;
```
<b>Returns:</b>
`JSX.Element`