mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 05:22:32 +08:00

* added packages reference menu item. * removed the draft flag. * Updated docs by running script.
101 lines
2.0 KiB
Markdown
101 lines
2.0 KiB
Markdown
+++
|
|
# -----------------------------------------------------------------------
|
|
# 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>() => void</code> | |
|
|
| [defaultProps](#defaultprops-property) | <code>static</code> | <code>Partial<Props></code> | |
|
|
| [onSelectionChange](#onselectionchange-property) | | <code>(item: SelectableValue<string>) => 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`
|
|
|