layout: default title: GroupElement parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Widgets

GroupElement Class

A GroupElement form element defines a container that holds a set of form elements that can be expanded, collapsed, or displayed together. This is the preferred way to set grouped field configurations within a FeatureForm or Featurelayer formTemplate.
ArcGIS Maps SDK for JavaScript

public class GroupElement : dymaptic.GeoBlazor.Core.Components.Widgets.FormElement

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 FormElement 🡒 GroupElement

Properties

GroupElement.Elements Property

An array of field elements to display as grouped. These objects represent an ordered list of form elements.

public System.Collections.Generic.List<dymaptic.GeoBlazor.Core.Components.Widgets.FieldElement>? Elements { get; set; }

Property Value

System.Collections.Generic.List<FieldElement>

Remarks

Nested group elements are not supported.

GroupElement.Type Property

Indicates the type of form element.

public override string Type { get; }

Property Value

System.String

Methods

GroupElement.RegisterChildComponent(MapComponent) Method

Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with it’s parent.

public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The calling, child component to register

Returns

System.Threading.Tasks.Task

Exceptions

InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.

Remarks

This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.

GroupElement.UnregisterChildComponent(MapComponent) Method

Undoes the “Registration” of a child with its parent.

public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The child to unregister

Returns

System.Threading.Tasks.Task

Remarks

This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.