require(["esri/layers/CodedValueDomain"], function(CodedValueDomain) { /* code goes here */ });
Description
(Added at v2.0)
Information about the coded values belonging to the domain. Coded value domains specify a set of valid values for an attribute.
See also
Samples
Search for
samples that use this class.
Class hierarchy
esri/layers/Domain
|_esri/layers/CodedValueDomain
Properties
Methods
Property Details
An array of the coded values in the domain. Each object consists of two properties: name and code.
The domain type. Valid values are "range" or "codedValue".
Method Details
Returns the name of the coded-value associated with the specified code. (Added at v3.12)
Parameters:
<Number | String > code |
Required |
The code in which you wish to search for the name. It can be a number or a string depending on the field type. |
Converts object to its ArcGIS Server JSON representation. (Added at v2.1)