require(["esri/widgets/FeatureTemplates/TemplateItem"], function(TemplateItem) { /* code goes here */ });
Class: esri/widgets/FeatureTemplates/TemplateItem
Inheritance: TemplateItem Accessor
Since: ArcGIS API for JavaScript 4.10
beta

The item displayed within the FeatureTemplates widget.

See also:

Constructors

new TemplateItem(properties)
Parameter:
properties Object
optional

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.
NameTypeSummaryClass
String

The name of the class.

more details
more detailsAccessor
String

The description that is displayed for the template item.

more details
more detailsTemplateItem
String

The label that is displayed for the template item.

more details
more detailsTemplateItem
FeatureLayer

The FeatureLayer associated with the template item.

more details
more detailsTemplateItem
FeatureTemplate

The associated FeatureTemplate for the item.

more details
more detailsTemplateItem
HTMLElement

An object used to create a thumbnail image that represents a feature type in the feature template.

more details
more detailsTemplateItem

Property Details

declaredClassStringreadonly inherited

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

descriptionString

The description that is displayed for the template item. This is similar to the description provided in FeatureTemplate.description.

labelString

The label that is displayed for the template item. This is similar to the name provided in FeatureTemplate.name.

The FeatureLayer associated with the template item.

The associated FeatureTemplate for the item.

thumbnailHTMLElementreadonly

An object used to create a thumbnail image that represents a feature type in the feature template. This is similar to FeatureTemplate.thumbnail.

Method Overview

NameReturn TypeSummaryClass
Promise

Fetches the thumbnail used to display the template item.

more details
more detailsTemplateItem

Method Details

fetchThumbnail(){Promise}

Fetches the thumbnail used to display the template item.

Returns:
TypeDescription
PromiseResolves when the thumbnail is loaded.

API Reference search results

NameTypeModule
Loading...