layout: default title: FieldsPopupContent parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Popups

FieldsPopupContent Class

A FieldsContent popup element represents the FieldInfo associated with a feature. If this is not set within the
content, it will revert to whatever may be set within the PopupTemplate.fieldInfos property.
ArcGIS Maps SDK for JavaScript

public class FieldsPopupContent : dymaptic.GeoBlazor.Core.Components.Popups.PopupContent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 PopupContent 🡒 FieldsPopupContent

Constructors

FieldsPopupContent() Constructor

Parameterless constructor for using as a razor component

public FieldsPopupContent();

FieldsPopupContent(FieldInfo[], string, string) Constructor

Constructs a new PopupContent in code with parameters

public FieldsPopupContent(dymaptic.GeoBlazor.Core.Components.Popups.FieldInfo[] fieldInfos, string? description=null, string? title=null);

Parameters

fieldInfos FieldInfo[]

A collection of FieldInfo

description System.String

Describes the field’s content in detail.

title System.String

Heading indicating what the field’s content represents.

Properties

FieldsPopupContent.Description Property

Describes the field’s content in detail.

public string? Description { get; set; }

Property Value

System.String

FieldsPopupContent.FieldInfos Property

Array of FieldInfos

public System.Collections.Generic.HashSet<dymaptic.GeoBlazor.Core.Components.Popups.FieldInfo>? FieldInfos { get; set; }

Property Value

System.Collections.Generic.HashSet<FieldInfo>

FieldsPopupContent.Title Property

Heading indicating what the field’s content represents.

public string? Title { get; set; }

Property Value

System.String

FieldsPopupContent.Type Property

The type of Popup Content

public override string Type { get; }

Property Value

System.String

Methods

FieldsPopupContent.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.

FieldsPopupContent.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.