Skip to main content Link Menu Expand (external link) Document Search Copy Copied

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
  
JS API

</a>

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.OnAfterRenderAsync(System.Boolean) 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.

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

FieldsPopupContent.ValidateRequiredChildren() Method

When a MapView is prepared to render, this will check to make sure that all properties with the
RequiredPropertyAttribute are provided.

public override void ValidateRequiredChildren();

Exceptions

MissingRequiredChildElementException
The consumer needs to provide the missing child component

MissingRequiredOptionsChildElementException
The consumer needs to provide ONE of the options of child components