import TemplateItem from "@arcgis/core/widgets/FeatureTemplates/TemplateItem.js";const TemplateItem = await $arcgis.import("@arcgis/core/widgets/FeatureTemplates/TemplateItem.js");- Inheritance:
- TemplateItem→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.10
The item displayed within the FeatureTemplates widget.
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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.
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
| | ||
| | ||
| | ||
HTMLElement | null | undefined | |
description
Property
The description that is displayed for the template item. This is similar to the description provided in FeatureTemplate.description.
label
Property
The label that is displayed for the template item. This is similar to the name provided in FeatureTemplate.name.
template
Property
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
| Method | Signature | Class |
|---|---|---|
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.