+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "ValueMappingsEditor"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
draft = true
+++

## ValueMappingsEditor class

<b>Signature</b>

```typescript
export declare class ValueMappingsEditor extends PureComponent<Props, State> 
```
<b>Import</b>

```typescript
import { ValueMappingsEditor } from '@grafana/ui';
```
<b>Constructors</b>

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [constructor(props)](#constructor-props) |  | Constructs a new instance of the <code>ValueMappingsEditor</code> class |

<b>Properties</b>

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [onAddMapping](#onaddmapping-property) |  | <code>() =&gt; void</code> |  |
|  [onRemoveMapping](#onremovemapping-property) |  | <code>(id: number) =&gt; void</code> |  |
|  [updateGauge](#updategauge-property) |  | <code>(mapping: ValueMapping) =&gt; void</code> |  |

<b>Methods</b>

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [getMaxIdFromValueMappings(mappings)](#getmaxidfromvaluemappings-method) |  |  |
|  [render()](#render-method) |  |  |

### constructor(props)

Constructs a new instance of the `ValueMappingsEditor` class

<b>Signature</b>

```typescript
constructor(props: Props);
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  props | <code>Props</code> |  |

### onAddMapping property

<b>Signature</b>

```typescript
onAddMapping: () => void;
```

### onRemoveMapping property

<b>Signature</b>

```typescript
onRemoveMapping: (id: number) => void;
```

### updateGauge property

<b>Signature</b>

```typescript
updateGauge: (mapping: ValueMapping) => void;
```

### getMaxIdFromValueMappings method

<b>Signature</b>

```typescript
getMaxIdFromValueMappings(mappings: ValueMapping[]): number;
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  mappings | <code>ValueMapping[]</code> |  |

<b>Returns:</b>

`number`

### render method

<b>Signature</b>

```typescript
render(): JSX.Element;
```
<b>Returns:</b>

`JSX.Element`

