▾
import FeatureItem from "@arcgis/core/widgets/support/SelectionList/FeatureItem.js";const FeatureItem = await $arcgis.import("@arcgis/core/widgets/support/SelectionList/FeatureItem.js");- Since
- ArcGIS Maps SDK for JavaScript 5.2
An item representing a feature in the selection list.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | Initial feature item properties. | |
Properties
| Property | Type | Class |
|---|---|---|
| readonly inherited | ||
| readonly | | |
| readonly inherited | Icon["icon"] | |
| readonly | | |
| readonly inherited | ||
| readonly | | |
| readonly | | |
| readonly inherited | ||
| readonly | | |
| readonly inherited | ||
| readonly | | |
| readonly | | |
| readonly inherited | ||
| readonly | |
iconName
- Type
- Icon["icon"]
Icon used to represent the item.
identifier
- Type
- SelectionIdentifier
Identifier for the feature represented by this item. It uses the feature's object ID when available. Otherwise, it uses the feature's graphic.
key
- Type
- string
Unique identifier used for this item. It combines the layer ID with the object ID or graphic UID to create a unique key for this feature item.
layerItem
- Type
- LayerItem
Reference to the layer item containing this feature item.
layerView
- Type
- SelectableLayerView | null | undefined
Companion layer view of the associated layer.
objectId
Reference to the object ID for the associated feature. This value may be null or undefined when viewing selections from layers that do not support object IDs. In that case, identifier is typically used to track the selection.
title
The display name for the feature within the selection list. If no title is available, the object ID is used as a fallback. If neither a title nor an object ID is available, it will display 'Untitled feature'.
view
- Type
- SelectableViewUnion | null | undefined
Convenience property for the view associated with the view model.
Type definitions
RequiredConstructProperties
Required properties used to construct a FeatureItem instance.
- Supertypes
- Pick<FeatureItem‚ "graphic" | "layerItem">