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

2.4 KiB

+++

-----------------------------------------------------------------------

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

Signature

export declare class ValueMappingsEditor extends PureComponent<Props, State> 

Import

import { ValueMappingsEditor } from '@grafana/ui';

Constructors

Constructor Modifiers Description
constructor(props) Constructs a new instance of the ValueMappingsEditor class

Properties

Property Modifiers Type Description
onAddMapping () => void
onRemoveMapping (id: number) => void
updateGauge (mapping: ValueMapping) => void

Methods

Method Modifiers Description
getMaxIdFromValueMappings(mappings)
render()

constructor(props)

Constructs a new instance of the ValueMappingsEditor class

Signature

constructor(props: Props);

Parameters

Parameter Type Description
props Props

onAddMapping property

Signature

onAddMapping: () => void;

onRemoveMapping property

Signature

onRemoveMapping: (id: number) => void;

updateGauge property

Signature

updateGauge: (mapping: ValueMapping) => void;

getMaxIdFromValueMappings method

Signature

getMaxIdFromValueMappings(mappings: ValueMapping[]): number;

Parameters

Parameter Type Description
mappings ValueMapping[]

Returns:

number

render method

Signature

render(): JSX.Element;

Returns:

JSX.Element