Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: FeatureActionFeatures

require(["esri/opsdashboard/FeatureActionFeatures"], function(FeatureActionFeatures) { /* code goes here */ });

Description

(Added at v3.14)
(Currently in Mature Support) FeatureActionFeatures is a specialized collection of features used by WidgetProxy to hold the collection of features for the associated feature actions. Features that can be used by associated feature actions are sent to the host application.

Samples

Search for samples that use this class.

Properties

NameTypeSummary
dataSourceProxyDataSourceProxyThe DataSourceProxy from which the collection of features belongs to.

Methods

NameReturn typeSummary
addFeature(featureOrObjectId)NoneAdd a feature to the host collection.
addFeatures(featuresOrObjectIds)NoneAdd a collection of features or collection of object id in the host collection.
clear()NoneRemove all the features from the host collection.
contains(featureOrObjectId)BooleanTest if a feature exists in the host collection.
indexOf(featureOrObjectId)NumberReturns the index of a feature in the host collection.
removeFeature(featureOrObjectId)NoneRemove a collection of features from the host collection.
removeFeatures(featuresOrObjectIds)NoneRemove a feature from the host collection.
Property Details

<DataSourceProxy> dataSourceProxy

The DataSourceProxy from which the collection of features belongs to.
Method Details

addFeature(featureOrObjectId)

Add a feature to the host collection.
Parameters:
<Graphic | Number> featureOrObjectId Required None

addFeatures(featuresOrObjectIds)

Add a collection of features or collection of object id in the host collection.
Parameters:
<Graphic[] | Number[]> featuresOrObjectIds Required None

clear()

Remove all the features from the host collection.

contains(featureOrObjectId)

Test if a feature exists in the host collection.
Return type: Boolean
Parameters:
<Graphic | Number> featureOrObjectId Required Feature to test existance for.

indexOf(featureOrObjectId)

Returns the index of a feature in the host collection.
Return type: Number
Parameters:
<Graphic | Number> featureOrObjectId Required Feature to return index from.

removeFeature(featureOrObjectId)

Remove a collection of features from the host collection.
Parameters:
<Graphic | Number> featureOrObjectId Required Feature to remove.

removeFeatures(featuresOrObjectIds)

Remove a feature from the host collection.
Parameters:
<Graphic[] | Number[]> featuresOrObjectIds Required Features to remove.
Show Modal