+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "ThresholdsEditor" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" draft = true +++ ## ThresholdsEditor class Signature ```typescript export declare class ThresholdsEditor extends PureComponent ``` Import ```typescript import { ThresholdsEditor } from '@grafana/ui'; ``` Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [constructor(props)](#constructor-props) | | Constructs a new instance of the ThresholdsEditor class | Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [onAddThresholdAfter](#onaddthresholdafter-property) | | (threshold: ThresholdWithKey) => void | | | [onBlur](#onblur-property) | | () => void | | | [onChange](#onchange-property) | | () => void | | | [onChangeThresholdColor](#onchangethresholdcolor-property) | | (threshold: ThresholdWithKey, color: string) => void | | | [onChangeThresholdValue](#onchangethresholdvalue-property) | | (event: React.ChangeEvent<HTMLInputElement>, threshold: ThresholdWithKey) => void | | | [onModeChanged](#onmodechanged-property) | | (item: SelectableValue<ThresholdsMode>) => void | | | [onRemoveThreshold](#onremovethreshold-property) | | (threshold: ThresholdWithKey) => void | | | [renderInput](#renderinput-property) | | (threshold: ThresholdWithKey) => JSX.Element | | Methods | Method | Modifiers | Description | | --- | --- | --- | | [render()](#render-method) | | | ### constructor(props) Constructs a new instance of the `ThresholdsEditor` class Signature ```typescript constructor(props: Props); ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | props | Props | | ### onAddThresholdAfter property Signature ```typescript onAddThresholdAfter: (threshold: ThresholdWithKey) => void; ``` ### onBlur property Signature ```typescript onBlur: () => void; ``` ### onChange property Signature ```typescript onChange: () => void; ``` ### onChangeThresholdColor property Signature ```typescript onChangeThresholdColor: (threshold: ThresholdWithKey, color: string) => void; ``` ### onChangeThresholdValue property Signature ```typescript onChangeThresholdValue: (event: React.ChangeEvent, threshold: ThresholdWithKey) => void; ``` ### onModeChanged property Signature ```typescript onModeChanged: (item: SelectableValue) => void; ``` ### onRemoveThreshold property Signature ```typescript onRemoveThreshold: (threshold: ThresholdWithKey) => void; ``` ### renderInput property Signature ```typescript renderInput: (threshold: ThresholdWithKey) => JSX.Element; ``` ### render method Signature ```typescript render(): JSX.Element; ``` Returns: `JSX.Element`