Types
import type { Axes, Position, Mode, ConversionInfo, ConvertFunction } from "@arcgis/core/widgets/types.js";

Type definitions

Axes

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The z axis orientation.

z

Property
Type
number | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

z axis orientation.

Position

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes a point in terms of a location, a Point, and a coordinate, a string.

location

Property
Type
Point | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A point geometry representing the location described by the conversion.

coordinate

Property
Type
string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A string representing the location.

Mode

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"live" | "capture"

ConversionInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This object describes how a Format should be projected and formatted for display. Used to define custom Formats that require custom conversion and/or projection logic.

convert

Property
Type
ConvertFunction | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A function that takes a point and returns a Position.

reverseConvert

Property
Type
ReverseConvertFunction | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A function that takes a string and returns a Point.

ConvertFunction

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

A user-provided function that converts a Point into a Position. This function may be necessary to provide as part of ConversionInfo when creating a custom Format.

Parameters

ParameterTypeDescriptionRequired
point

A point to be converted.

Returns
Position

The returned position.

ReverseConvertFunction

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

A user-provided function that converts a coordinate string into a Point. This function may be necessary to provide as part of ConversionInfo when creating a custom Format.

Parameters

ParameterTypeDescriptionRequired
coordinate

The string to be reversed.

Returns
Point

The returned point

CoordinateSegment

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

A coordinate segment represents one piece of a coordinate string.

A MGRS coordinate, for example 30UVG898998, is described by four segments:

  1. Alias Z, the gridzone: 30U
  2. Alias S, the 100,000 meter square designator: VG
  3. Alias X, the easting (x coordinate with respect to the 10,000 meter square): 898
  4. Alias Y, the northing (y coordinate with respect to the 10,000 meter square): 998

alias

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

A string that provides the name for this segment of a coordinate string.

description

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

A string that describes the role of this segment.

searchPattern

Property
Type
RegExp
Since
ArcGIS Maps SDK for JavaScript 5.0

A regular expression that should extract this segment from the complete coordinate.

LayerInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

An object that defines a layer, optional sublayer IDs, and a custom title for legend display. Use this to specify which layers and sublayers appear in the legend and how they are labeled with layerInfos.

layer

Property
Type
Layer | Sublayer
Since
ArcGIS Maps SDK for JavaScript 5.0

A layer to display in the legend.

title

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

Specifies a title for the layer to display above its symbols and descriptions. If no title is specified the service name is used.

sublayerIds

Property
Type
number[] | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The IDs of the sublayers for which to display legend information. Only applicable if the layer is a MapImageLayer, SubtypeGroupLayer or WMSLayer.

LegendElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Properties defining the scheme of each of the supported legendElement.

SymbolTableElementType

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Properties defining the scheme of each SymbolTableElementType.

SymbolTableElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the SymbolTableElement used as a legendElement. This legend element is used for UniqueValueRenderer and ClassBreaksRenderer.

type

Property
Type
"symbol-table"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of this element is always symbol-table.

title

Property
Type
RendererTitle | DotDensityTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the renderer as displayed in the legend.

infos

Property
Type
SymbolTableElementType[]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of each symbol/category/break rendered for the symbol table. For example, this may be individual breaks for a ClassBreaksRenderer, or unique values for a UniqueValueRenderer.

legendType

Property
Type
string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Only used for renderers set to ImageryLayers. Indicates the type of renderer set on the layer (e.g. stretched or Unique Values).

SymbolTableElementInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Properties defining the scheme of the SymbolTableElementInfo.

symbol

Property
Type
SymbolUnion
Since
ArcGIS Maps SDK for JavaScript 5.0

The symbol for the corresponding value in the legend.

label

Property
Type
RampTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the renderer as displayed in the Legend.

value

Property
Type
any | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The value corresponding with the given symbol in the legend.

size

Property
Type
number | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The size of the symbol in points.

preview

Property
Type
HTMLElement | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A preview of the symbol element as displayed in the legend.

previewAriaLabel

Property
Type
RendererTitle | DotDensityTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The aria-label for the preview element.

ImageSymbolTableElementInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Properties defining the scheme of each of the ImageSymbolTableElementInfo. This applies only to ImageryLayer renderers.

label

Property
Type
StretchMultibandTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The label of the category corresponding to the given image.

src

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The data URI of the image representing a colored pixel in the renderer.

previewAriaLabel

Property
Type
RendererTitle | DotDensityTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The aria-label for the preview element.

opacity

Property
Type
number | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The opacity of the image (0 to 1).

width

Property
Type
number | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The width of the image in pixels.

height

Property
Type
number | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The height of the image in pixels.

ColorRampElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the ColorRampElement used as a legendElement.

type

Property
Type
"color-ramp"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of this element is always color-ramp.

title

Property
Type
RampTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the color ramp as displayed in the legend.

infos

Property
Type
ColorRampStop[]
Since
ArcGIS Maps SDK for JavaScript 5.0

The individual color stops rendered in the legend that correspond to the color visual variable in the renderer.

preview

Property
Type
HTMLElement | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A preview of the element as displayed in the legend.

StretchRampElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the StretchRampElement used as a legendElement.

type

Property
Type
"stretch-ramp"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of this element is always stretch-ramp.

title

Property
Type
RampTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the color ramp as displayed in the legend.

infos

Property
Type
ColorRampStop[]
Since
ArcGIS Maps SDK for JavaScript 5.0

The individual color stops rendered in the legend that correspond to the color visual variable in the renderer.

preview

Property
Type
HTMLElement | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A preview of the element as displayed in the legend.

OpacityRampElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the OpacityRampElement used as a legendElement.

type

Property
Type
"opacity-ramp"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of this element is always opacity-ramp.

title

Property
Type
RampTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the opacity ramp as displayed in the legend.

infos

Property
Type
OpacityRampStop[]
Since
ArcGIS Maps SDK for JavaScript 5.0

The individual opacity stops rendered in the legend that correspond to the opacity visual variable in the renderer.

preview

Property
Type
HTMLElement | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A preview of the element as displayed in the legend.

SizeRampElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the SizeRampElement used as a legendElement.

type

Property
Type
"size-ramp"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of this element is always size-ramp.

title

Property
Type
ClusterTitle | RampTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the size ramp as displayed in the legend.

infos

Property
Type
SizeRampStop[]
Since
ArcGIS Maps SDK for JavaScript 5.0

The individual size stops rendered in the legend that correspond to the size visual variable in the renderer.

theme

Property
Type
"spike" | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The theme of this element.

HeatmapRampElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the HeatmapRampElement used as a legendElement.

type

Property
Type
"heatmap-ramp"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of this element is always heatmap-ramp.

title

Property
Type
RendererTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the heatmap ramp as displayed in the legend.

infos

Property
Type
HeatmapRampStop[]
Since
ArcGIS Maps SDK for JavaScript 5.0

The individual color stops rendered in the legend that correspond to the heatmap colorStops in the renderer.

preview

Property
Type
HTMLElement | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A preview of the element as displayed in the legend.

RelationshipRampElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the RelationshipRampElement used as a legendElement.

type

Property
Type
"relationship-ramp"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of this element is always relationship-ramp.

numClasses

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The number of classes for each field comprising the renderer. Can either be 2, 3, or 4.

focus

Property
Type
RelationshipFocus
Since
ArcGIS Maps SDK for JavaScript 5.0

Determines the orientation of the Legend. Values can be HH, HL, LH, LL.

colors

Property
Type
Color[][]
Since
ArcGIS Maps SDK for JavaScript 5.0

A 2-dimensional array of colors as displayed in the legend grid.

labels

Property
Type
RelationshipLabels
Since
ArcGIS Maps SDK for JavaScript 5.0

The labels for each corner of the legend.

rotation

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The rotation of the legend in degrees (0-360). 0 degrees displays the legend as a square with the LL cell in the bottom left corner of the legend and the HH cell in the top right corner.

title

Property
Type
string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the renderer as displayed in the legend.

infos

Property
Type
any[] | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Info objects associated with the relationship renderer.

UnivariateColorSizeRampElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the UnivariateColorSizeRampElement used as a legendElement.

type

Property
Type
"univariate-above-and-below-ramp" | "univariate-color-size-ramp"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of this element is univariate-above-and-below-ramp or univariate-color-size-ramp.

title

Property
Type
ClusterTitle | RampTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the color ramp as displayed in the legend.

infos

Property
Type
(SizeRampElement | ColorRampElement)[]
Since
ArcGIS Maps SDK for JavaScript 5.0

The individual color stops rendered in the legend that correspond to the color visual variable in the renderer.

PieChartRampElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the UnivariateColorSizeRampElement used as a legendElement.

type

Property
Type
"pie-chart-ramp"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of this element is always pie-chart-ramp.

title

Property
Type
RendererTitle | string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the color ramp as displayed in the legend.

infos

Property
Type
SymbolTableElementInfo[]
Since
ArcGIS Maps SDK for JavaScript 5.0

The individual color stops rendered in the legend that correspond to the color visual variable in the renderer.

preview

Property
Type
HTMLElement | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

A preview of the element as displayed in the legend.

RendererTitle

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the RendererTitle element.

title

Property
Type
string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the renderer as displayed in the legend.

field

Property
Type
string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The field name used in the renderer. This is used in the generated title of the renderer in the legend.

normField

Property
Type
string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

If a normalization field is provided to the renderer, this field is also used in the generated title for the renderer in the legend.

normByPct

Property
Type
boolean | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates if a percentage is used in the normalization of the renderer. This is used to create a more readable legend for that scenario.

DotDensityTitle

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the DotDensityTitle element.

value

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The value.

unit

Property
Type
string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The unit.

ClusterTitle

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the ClusterTitle element.

showCount

Property
Type
boolean
Since
ArcGIS Maps SDK for JavaScript 5.0

Whether to show the count.

RampTitle

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the RampTitle element.

field

Property
Type
string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The field name used in a visual variable of a renderer. This is used in the generated title of the corresponding ramp in the legend.

normField

Property
Type
string | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

If provided, the normalization field name used in a visual variable of a renderer. This is used in the generated title of the corresponding ramp in the legend.

ratio

Property
Type
boolean
Since
ArcGIS Maps SDK for JavaScript 5.0

If true, the legend formats to display the field and normalization field as a ratio.

ratioPercent

Property
Type
boolean
Since
ArcGIS Maps SDK for JavaScript 5.0

If true, the legend formats to display the field and normalization field as a percentage.

ratioPercentTotal

Property
Type
boolean
Since
ArcGIS Maps SDK for JavaScript 5.0

If true, the legend formats to display the field and normalization field as a percentage of total.

StretchMultibandTitle

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the StretchMultibandTitle element.

colorName

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The color name.

bandName

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The band name.

SizeRampStop

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the SizeRampStop element. Each SizeRampStop represents a single stop of the SizeVariable referenced in the renderer.

label

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The label in the legend describing features with the given symbol and value.

value

Property
Type
any | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The value of the size visual variable stop.

symbol

Property
Type
SymbolUnion
Since
ArcGIS Maps SDK for JavaScript 5.0

The symbol corresponding to the value of the stop in the renderer.

size

Property
Type
number | { width: number; height: number; } | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The size of the visual variable stop in points.

outlineSize

Property
Type
number | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The width of the outline in points.

preview

Property
Type
HTMLElement | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The HTML element rendered in the legend representing features with the given value.

ColorRampStop

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the ColorRampStop element. Each ColorRampStop represents a single stop of the ColorVariable referenced in the renderer.

value

Property
Type
number | string | null
Since
ArcGIS Maps SDK for JavaScript 5.0

The value of the color visual variable stop.

color

Property
Type
Color
Since
ArcGIS Maps SDK for JavaScript 5.0

The color of the visual variable stop.

label

Property
Type
string | null
Since
ArcGIS Maps SDK for JavaScript 5.0

The label in the legend describing features with the given color and value.

OpacityRampStop

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the OpacityRampStop element. Each OpacityRampStop represents a single stop of the OpacityVariable referenced in the renderer. The opacity value of each stop is indicated in the alpha property of the color object.

value

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The value of the opacity visual variable stop.

color

Property
Type
Color
Since
ArcGIS Maps SDK for JavaScript 5.0

The color of the visual variable stop. The opacity corresponding to the given value is indicated in the alpha property of the color object.

label

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The label in the legend describing features with the given color and value.

HeatmapRampStop

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the HeatmapRampStop element. Each HeatmapRampStop represents a single colorStop of the Heatmap color stops referenced in the renderer.

color

Property
Type
Color
Since
ArcGIS Maps SDK for JavaScript 5.0

The color of the pixel corresponding to the appropriate pixel ratio. This value is typically between 0 and 1.

ratio

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The ratio of a pixel's intensity value to the minPixelIntensity of the renderer. The ratio of each pixel is matched to the corresponding color.

label

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The label of the color stop displayed in the legend. Typically only the first and last stops have labels.

RelationshipLabels

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the schema of the RelationshipLabels element. These labels are rendered in the corners of the square that represent the relationship renderer in the legend.

top

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The label corresponding with the top corner of the legend if the focus is set to HH. This describes values that are considered high in both field 1 and field 2 (HH).

bottom

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The label corresponding with the bottom corner of the legend if the focus is set to HH. This describes values that are considered low in both field 1 and field 2 (LL).

left

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The label corresponding with the left corner of the legend (if the focus is set to HH). This describes features where the value of field 1 is high and the value of field 2 is low (HL).

right

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The label corresponding with the right corner of the legend (if the focus is set to HH). This describes features where the value of field 2 is high and the value of field 1 is low (LH).

AttributionItem

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The following properties define an attribution item that contains the attribution text for a layer.

text

readonly Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The attribution text.

layerView

readonly Property
Type
LayerView
Since
ArcGIS Maps SDK for JavaScript 5.0

The layer view that has the attribution text.

MeasurementState

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"disabled" | "ready" | "measuring" | "measured"

AreaMeasurement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

geometry

Property
Type
Polygon
Since
ArcGIS Maps SDK for JavaScript 5.0

Measurement area.

area

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The area (m²).

perimeter

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The perimeter (m).

AreaMeasurementLabel

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

area

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The area (m²).

perimeter

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The perimeter (m).

LinearMeasurement

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

geometry

Property
Type
Polyline
Since
ArcGIS Maps SDK for JavaScript 5.0

Measurement line.

length

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Line length (m).

DomNodeOwner

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

A dom node owner.

domNode

Property
Type
HTMLElement
Since
ArcGIS Maps SDK for JavaScript 5.0

The dom node.

SliderFormatType

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"average" | "min" | "max" | "tick" | "value"

HistogramLabelFormatFunction

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Function used to format labels. This function should be set to the Histogram.labelFormatFunction property. This function fires every time a label is created or updated on the histogram.

Parameters

ParameterTypeDescriptionRequired
value

The value for the line on the data axis.

type
"average"

The label type. Currently, the only supported type is average.

index

The index of the data line.

Returns
string

The formatted value of the label.

LabelFormatFunction

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Function used to format labels. This function should be set to the Slider.labelFormatFunction property. It fires each time a label is created or updated on the slider.

Parameters

ParameterTypeDescriptionRequired
value

The value of the thumb to be labeled.

type

The label type. Valid types include average, min, max, tick, and value.

index

The index of the thumb (or value).

Returns
string

The formatted value of the label.

InputFormatFunction

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Function used to format thumb labels. This function should be set to the SmartMappingSliderBase.labelFormatFunction property. This function fires every time a label is created or updated on the slider.

Supertypes
LabelFormatFunction

InputParseFunction

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Function definition for the Slider.inputParseFunction property. It fires each time the user modifies slider input by key entry.

Parameters

ParameterTypeDescriptionRequired
value

The formatted input value of the thumb to be parsed.

type
"average" | "min" | "max" | "tick" | "value"

The label type. Valid types include average, min, max, tick, and value.

index

The index of the thumb (or value).

Returns
number

The parsed number value of the thumb.