import type { State, FeatureFormattedAttributes, LastEditInfo, LayerInfo, RelatedInfo } from "@arcgis/core/widgets/Feature/types.js";Type definitions
State
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- "disabled" | "ready" | "error" | "loading"
FeatureFormattedAttributes
- Since
- ArcGIS Maps SDK for JavaScript 5.0
global
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The formatted attributes specified at the root level of the PopupTemplate using the PopupTemplate.fieldInfos property.
content
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The formatted attributes for an individual content element. This is derived from the PopupTemplate, or per an individual content element. This element is defined with a FieldsContent popup element set on the PopupTemplate's PopupTemplate.content.
LastEditInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
user
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
User who performed the last edit on a feature.
LayerInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Information about the layer associated with the feature.
fields
- Type
- Field[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of the layer's fields.
relationships
- Type
- Relationship[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of the layer's relationships.
objectIdField
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The object ID field of the layer.
supportsStatistics
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether the layer supports statistics.
RelatedInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Information about the features that are related to the current feature.
outStatistics
- Type
- StatisticDefinition[] | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of statistics to be calculated for the related features.
relation
- Type
- Relationship | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The relationship between the current feature and the related features.
sourceSpatialReference
- Type
- SpatialReference | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The spatial reference of the source feature.
Abilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
This object defines specific abilities for the Feature and Popup widgets.
attachmentsContent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicate whether the widget should query and display attachments associated with the feature.
- Default value
- true
chartAnimation
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicate whether the widget should display animations for charts residing in media content elements.
- Default value
- true
customContent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicate whether the widget should display any custom content elements.
- Default value
- true
fieldsContent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicate whether the widget should display any fields content elements.
- Default value
- true
mediaContent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicate whether the widget should display any media content elements.
- Default value
- true
textContent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicate whether the widget should display any text content elements.
- Default value
- true
relationshipContent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicate whether the widget should display relationship content elements.
- Default value
- true
utilityNetworkAssociationsContent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicate whether the widget should display utility network associations content elements.
- Default value
- true