FieldsIndex
require(["esri/layers/support/FieldsIndex"], function(FieldsIndex) { /* code goes here */ });
Class:
esri/layers/support/FieldsIndex
Since: ArcGIS API for JavaScript 4.12
This class provides convenient methods that can be used to make case-insensitive lookups for a field by its name. It also provides more information such as the list of date fields in a layer.
Constructors
- new FieldsIndex(properties)
- Parameter:properties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Any properties can be set, retrieved or listened to. See the Working with Properties topic.
Name | Type | Summary | Class | |
---|---|---|---|---|
Field[]|Object[] | An array of date fields or field json objects. more details | more details | FieldsIndex |
Property Details
An array of date fields or field json objects.
- Default Value:[]
Method Overview
Name | Return Type | Summary | Class | |
---|---|---|---|---|
Field | Returns a field with the specified field name. more details | more details | FieldsIndex | |
Boolean | Checks if a field with the specified field name exists in the layer. more details | more details | FieldsIndex | |
Boolean | Checks if a field with the specified field name is a date field. more details | more details | FieldsIndex |
Method Details
- get(fieldName){Field}
Returns a field with the specified field name.
Parameter:fieldName StringThe name of the field. The name is case-insensitive.
Returns:Type Description Field Returns a field with a given name.
Loading...