TemplateItem
require(["esri/widgets/FeatureTemplates/TemplateItem"], function(TemplateItem) { /* code goes here */ });
esri/widgets/FeatureTemplates/TemplateItem
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 | The name of the class. more details | more details | Accessor | |
String | The description that is displayed for the template item. more details | more details | TemplateItem | |
String | The label that is displayed for the template item. more details | more details | TemplateItem | |
FeatureLayer | The FeatureLayer associated with the template item. more details | more details | TemplateItem | |
FeatureTemplate | The associated FeatureTemplate for the item. more details | more details | TemplateItem | |
HTMLElement | An object used to create a thumbnail image that represents a feature type in the feature template. more details | 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 | Creates a deep clone of the template item object. more details | more details | TemplateItem | |
Promise | Fetches the thumbnail used to display the template item. more details | 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.