The item displayed within the FeatureTemplates widget.
Constructors
-
new TemplateItem(properties)
-
Parameter:properties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Name | Type | Summary | Class | |
---|---|---|---|---|
String | more details The name of the class. | more details | Accessor | |
String | more details The description that is displayed for the template item. | more details | TemplateItem | |
String | more details The label that is displayed for the template item. | more details | TemplateItem | |
FeatureLayer | more details The FeatureLayer associated with the template item. | more details | TemplateItem | |
FeatureTemplate | more details The associated FeatureTemplate for the item. | more details | TemplateItem | |
HTMLElement | more details An object used to create a thumbnail image that represents a feature type in the feature template. | more details | TemplateItem |
Property Details
-
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 | |
---|---|---|---|---|
TemplateItem | more details Creates a deep clone of the template item object. | more details | TemplateItem | |
Promise | more details Fetches the thumbnail used to display the template item. | more details | TemplateItem |
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.