dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Popups
FieldsPopupContent Class
A FieldsContent
popup element represents the FieldInfo associated with a
feature.
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 use as a Razor Component.
public FieldsPopupContent();
FieldsPopupContent(IReadOnlyList, string, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public FieldsPopupContent(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.FieldInfo> fieldInfos, string? description=null, string? title=null);
Parameters
fieldInfos
System.Collections.Generic.IReadOnlyList<FieldInfo>
Array of fieldInfos.
ArcGIS Maps SDK for JavaScript
description
System.String
Describes the field’s content in detail.
ArcGIS Maps SDK for JavaScript
title
System.String
Heading indicating what the field’s content represents.
ArcGIS Maps SDK for JavaScript
Properties
FieldsPopupContent.Description Property
Describes the field’s content in detail.
public string? Description { get; set; }
Property Value
FieldsPopupContent.FieldInfos Property
Array of fieldInfos.
ArcGIS Maps SDK for JavaScript
public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.FieldInfo>? FieldInfos { get; set; }
Property Value
System.Collections.Generic.IReadOnlyList<FieldInfo>
FieldsPopupContent.Title Property
Heading indicating what the field’s content represents.
public string? Title { get; set; }
Property Value
FieldsPopupContent.Type Property
The type of Popup Content
public override dymaptic.GeoBlazor.Core.Enums.PopupContentType Type { get; }
Property Value
Methods
FieldsPopupContent.AddToFieldInfos(FieldInfo[]) Method
Asynchronously adds elements to the FieldInfos property.
public System.Threading.Tasks.Task AddToFieldInfos(params dymaptic.GeoBlazor.Core.Components.FieldInfo[] values);
Parameters
The elements to add.
Returns
FieldsPopupContent.GetDescription() Method
Asynchronously retrieve the current value of the Description property.
public System.Threading.Tasks.Task<string?> GetDescription();
Returns
System.Threading.Tasks.Task<System.String>
FieldsPopupContent.GetFieldInfos() Method
Asynchronously retrieve the current value of the FieldInfos property.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.FieldInfo>?> GetFieldInfos();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<FieldInfo>>
FieldsPopupContent.GetTitle() Method
Asynchronously retrieve the current value of the Title property.
public System.Threading.Tasks.Task<string?> GetTitle();
Returns
System.Threading.Tasks.Task<System.String>
FieldsPopupContent.RegisterChildComponent(MapComponent) Method
Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with its parent.
public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The calling, child component to register
Returns
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.RemoveFromFieldInfos(FieldInfo[]) Method
Asynchronously remove an element from the FieldInfos property.
public System.Threading.Tasks.Task RemoveFromFieldInfos(params dymaptic.GeoBlazor.Core.Components.FieldInfo[] values);
Parameters
The elements to remove.
Returns
FieldsPopupContent.SetDescription(string) Method
Asynchronously set the value of the Description property after render.
public System.Threading.Tasks.Task SetDescription(string? value);
Parameters
value
System.String
The value to set.
Returns
FieldsPopupContent.SetFieldInfos(IReadOnlyList) Method
Asynchronously set the value of the FieldInfos property after render.
public System.Threading.Tasks.Task SetFieldInfos(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.FieldInfo>? value);
Parameters
value
System.Collections.Generic.IReadOnlyList<FieldInfo>
The value to set.
Returns
FieldsPopupContent.SetTitle(string) Method
Asynchronously set the value of the Title property after render.
public System.Threading.Tasks.Task SetTitle(string? value);
Parameters
value
System.String
The value to set.
Returns
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
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.
FieldsPopupContent.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()