Skip To ContentArcGIS for DevelopersSign In Dashboard
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

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

declaredClass Stringreadonly inherited

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

description String

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

label String

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.

thumbnail HTMLElementreadonly

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
TemplateItem

Creates a deep clone of the template item object.

more details
more detailsTemplateItem
Promise

Fetches the thumbnail used to display the template item.

more details
more detailsTemplateItem

Method Details

clone(){TemplateItem}

Creates a deep clone of the template item object.

Returns:
TypeDescription
TemplateItemReturns a deep clone of the template item.
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...