GeoBlazor Pro
layout: pro title: FeatureTemplatesWidget parent: Pro Classes grand_parent: GeoBlazor Pro —
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components.Widgets
FeatureTemplatesWidget Class
The FeatureTemplates widget is part of the overall editing workflow. Its main purpose is to display templates from one or more feature layers. In addition to displaying feature layer templates, it is also possible to filter and group templates for an easier editing experience. The widget listens for an end user to select a specific template in the widget. Its select event is fired and the resulting template information is returned. This widget can be used in conjunction with FeatureLayer.applyEdits to enable an end user to update one of its feature layers.
ArcGIS Maps SDK for JavaScript
public class FeatureTemplatesWidget : dymaptic.GeoBlazor.Pro.Components.Widgets.ProWidget
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 dymaptic.GeoBlazor.Core.Components.Widgets.Widget 🡒 ProWidget 🡒 FeatureTemplatesWidget
Properties
FeatureTemplatesWidget.EnableListScroll Property
Specifies whether or not the list should be forced to scroll within its containing element
public System.Nullable<bool> EnableListScroll { get; set; }
Property Value
System.Nullable<System.Boolean>
FeatureTemplatesWidget.HeadingLevel Property
Indicates the heading level to use for the labels of grouped feature templates. By default, the group label is rendered as a level 4 heading (e.g. <h4>Group label</h4>). Depending on the widget’s placement in your app, you may need to adjust this heading for proper semantics. This is important for meeting accessibility standards.
Default Value: 4
public System.Nullable<int> HeadingLevel { get; set; }
Property Value
FeatureTemplatesWidget.Label Property
The widget’s default label.
public string? Label { get; set; }
Property Value
FeatureTemplatesWidget.LayerIds Property
An array of Ids for dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayers to display within the widget. The order in which these layers are set in the array dictates how they display within the widget.
public System.Collections.Generic.IList<System.Guid>? LayerIds { get; set; }
Property Value
System.Collections.Generic.IList<System.Guid>
FeatureTemplatesWidget.OnSelect Property
Fires when a template item is selected. This occurs when the associated view model’s select method is called.
public Microsoft.AspNetCore.Components.EventCallback<dymaptic.GeoBlazor.Pro.Components.Widgets.FeatureTemplateSelectEvent> OnSelect { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<FeatureTemplateSelectEvent>
Methods
FeatureTemplatesWidget.OnJsSelect(FeatureTemplateSelectEvent) Method
Internal JavaScript method fired on selection
public System.Threading.Tasks.Task OnJsSelect(dymaptic.GeoBlazor.Pro.Components.Widgets.FeatureTemplateSelectEvent selectEvent);
Parameters
selectEvent
FeatureTemplateSelectEvent
Returns
FeatureTemplatesWidget.Select(TemplateItem) Method
Selects the template item to use.
public System.Threading.Tasks.Task Select(dymaptic.GeoBlazor.Pro.Components.Widgets.TemplateItem item);
Parameters
item
TemplateItem