Skip to content
import TemplateItem from "@arcgis/core/widgets/FeatureTemplates/TemplateItem.js";
Inheritance:
TemplateItemAccessor
Since
ArcGIS Maps SDK for JavaScript 4.10

The item displayed within the FeatureTemplates widget.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
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.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

description

Property
Type
string | null | undefined

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

label

Property
Type
string | null | undefined

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

layer

Property
Type
LayerWithFeatureTemplatesUnion

The layer associated with the template item.

template

Property
Type
FeatureTemplate | SharedTemplateMetadata

The associated FeatureTemplate for the item.

thumbnail

Property
Type
HTMLElement | null | undefined

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

Methods

MethodSignatureClass
clone(): TemplateItem

clone

Method
Signature
clone (): TemplateItem

Creates a deep clone of the template item object.

Returns
TemplateItem

Returns a deep clone of the template item.