TemplateItem

AMD: require(["esri/widgets/FeatureTemplates/TemplateItem"], (TemplateItem) => { /* code goes here */ });
ESM: import TemplateItem from "@arcgis/core/widgets/FeatureTemplates/TemplateItem";
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.
Show inherited properties Hide inherited properties
Name Type Summary Class
Stringmore details

The name of the class.

more detailsAccessor
Stringmore details

The description that is displayed for the template item.

more detailsTemplateItem
Stringmore details

The label that is displayed for the template item.

more detailsTemplateItem
FeatureLayermore details

The FeatureLayer associated with the template item.

more detailsTemplateItem
FeatureTemplatemore details

The associated FeatureTemplate for the item.

more detailsTemplateItem
HTMLElementmore details

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

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.

layer FeatureLayer

The FeatureLayer associated with the template item.

template FeatureTemplate

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

Name Return Type Summary Class
TemplateItemmore details

Creates a deep clone of the template item object.

more detailsTemplateItem
Promisemore details

Fetches the thumbnail used to display the template item.

more detailsTemplateItem

Method Details

clone(){TemplateItem}

Creates a deep clone of the template item object.

Returns:
Type Description
TemplateItem Returns a deep clone of the template item.
fetchThumbnail(){Promise}

Fetches the thumbnail used to display the template item.

Returns:
Type Description
Promise Resolves when the thumbnail is loaded.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.