mirror of https://github.com/grafana/grafana.git
65 lines
1.3 KiB
Markdown
65 lines
1.3 KiB
Markdown
|
+++
|
||
|
# -----------------------------------------------------------------------
|
||
|
# Do not edit this file. It is automatically generated by API Documenter.
|
||
|
# -----------------------------------------------------------------------
|
||
|
title = "Switch"
|
||
|
keywords = ["grafana","documentation","sdk","@grafana/ui"]
|
||
|
type = "docs"
|
||
|
draft = true
|
||
|
+++
|
||
|
|
||
|
## Switch class
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare class Switch extends PureComponent<Props, State>
|
||
|
```
|
||
|
<b>Import</b>
|
||
|
|
||
|
```typescript
|
||
|
import { Switch } from '@grafana/ui';
|
||
|
```
|
||
|
<b>Properties</b>
|
||
|
|
||
|
| Property | Modifiers | Type | Description |
|
||
|
| --- | --- | --- | --- |
|
||
|
| [internalOnChange](#internalonchange-property) | | <code>(event: React.FormEvent<HTMLInputElement>) => void</code> | |
|
||
|
| [state](#state-property) | | <code>{</code><br/><code> id: string;</code><br/><code> }</code> | |
|
||
|
|
||
|
<b>Methods</b>
|
||
|
|
||
|
| Method | Modifiers | Description |
|
||
|
| --- | --- | --- |
|
||
|
| [render()](#render-method) | | |
|
||
|
|
||
|
### internalOnChange property
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
internalOnChange: (event: React.FormEvent<HTMLInputElement>) => void;
|
||
|
```
|
||
|
|
||
|
### state property
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
state: {
|
||
|
id: string;
|
||
|
};
|
||
|
```
|
||
|
|
||
|
### render method
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
render(): JSX.Element;
|
||
|
```
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
`JSX.Element`
|
||
|
|