import FeatureItem from "@arcgis/core/widgets/support/SelectionList/FeatureItem.js";
Inheritance
FeatureItem→ItemBase→Accessor
Since
ArcGIS Maps SDK for JavaScript 5.2

An item representing a feature in the selection list.

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
properties

Initial feature item properties.

See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
readonly inherited
readonly
readonly inherited
Icon["icon"]
readonly
readonly inherited
key
readonly
readonly
readonly inherited
readonly
readonly inherited
readonly
readonly
readonly inherited
readonly

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

graphic

readonly Property
Type
Graphic

Reference to the feature this item represents.

iconName

readonlyinherited Property
Type
Icon["icon"]
Inherited from: ItemBase

Icon used to represent the item.

identifier

readonly Property
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.

isTable

readonlyinherited Property
Type
boolean
Inherited from: ItemBase

Indicates this item represents a table layer.

key

readonly Property
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.

layer

readonly Property
Type
SelectableLayer

Layer associated with the item.

layerIsVisible

readonlyinherited Property
Type
boolean
Inherited from: ItemBase

Indicates the layer and its selected features are visible on the map.

layerItem

readonly Property
Type
LayerItem

Reference to the layer item containing this feature item.

layerView

readonlyinherited Property
Type
SelectableLayerView | null | undefined
Inherited from: ItemBase

Companion layer view of the associated layer.

objectId

readonly Property
Type
ObjectId | null | undefined

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

readonly Property
Type
string | null | undefined

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

readonlyinherited Property
Type
SelectableViewUnion | null | undefined
Inherited from: ItemBase

Convenience property for the view associated with the view model.

visible

readonly Property
Type
boolean

Indicates whether the list item is visible.

Type definitions

RequiredConstructProperties

Type definition

Required properties used to construct a FeatureItem instance.

Supertypes
Pick<FeatureItem‚ "graphic" | "layerItem">