GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components.Popups
CustomPopupContent Class
A `CustomContent` popup element is used to provide a way to customize the popup’s content. ArcGIS Maps SDK for JavaScript
public class CustomPopupContent : dymaptic.GeoBlazor.Core.Components.Popups.PopupContent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 PopupContent 🡒 CustomPopupContent
Constructors
CustomPopupContent() Constructor
Parameterless constructor for use as a Razor Component.
public CustomPopupContent();
CustomPopupContent(PopupTemplateContentDestroyer, IReadOnlyList, PopupTemplateContentCreator) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public CustomPopupContent(dymaptic.GeoBlazor.Pro.Functions.PopupTemplateContentDestroyer? destroyer=null, System.Collections.Generic.IReadOnlyList<string>? outFields=null, dymaptic.GeoBlazor.Pro.Functions.PopupTemplateContentCreator? creatorFunction=null);
Parameters
destroyer
PopupTemplateContentDestroyer(PopupTemplateCreatorEvent)
The called function to cleanup custom content when it is no longer necessary. ArcGIS Maps SDK for JavaScript
outFields
System.Collections.Generic.IReadOnlyList<System.String>
An array of field names used in the PopupTemplate. ArcGIS Maps SDK for JavaScript
creatorFunction
PopupTemplateContentCreator(PopupTemplateCreatorEvent)
The function that is called to create the custom content element. ArcGIS Maps SDK for JavaScript
Properties
CustomPopupContent.CreatorFunction Property
The function that is called to create the custom content element. ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Functions.PopupTemplateContentCreator? CreatorFunction { get; set; }
Property Value
PopupTemplateContentCreator(PopupTemplateCreatorEvent)
CustomPopupContent.Destroyer Property
The called function to cleanup custom content when it is no longer necessary. ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Functions.PopupTemplateContentDestroyer? Destroyer { get; set; }
Property Value
PopupTemplateContentDestroyer(PopupTemplateCreatorEvent)
CustomPopupContent.HasContentCreatorFunction Property
A convenience property that signifies whether a custom CreatorFunction function was registered.
public bool HasContentCreatorFunction { get; }
Property Value
CustomPopupContent.HasDestroyerFunction Property
A convenience property that signifies whether a custom Destroyer function was registered.
public bool HasDestroyerFunction { get; }
Property Value
CustomPopupContent.OutFields Property
An array of field names used in the PopupTemplate. ArcGIS Maps SDK for JavaScript
public System.Collections.Generic.IReadOnlyList<string>? OutFields { get; set; }
Property Value
System.Collections.Generic.IReadOnlyList<System.String>
CustomPopupContent.Type Property
The type of Popup Content
public override dymaptic.GeoBlazor.Core.Enums.PopupContentType Type { get; }
Property Value
CustomPopupContent.WidgetContent Property
Widget child content.
public dymaptic.GeoBlazor.Core.Components.Widgets.Widget? WidgetContent { get; set; }
Property Value
Methods
CustomPopupContent.AddToOutFields(string[]) Method
Asynchronously adds elements to the OutFields property.
public System.Threading.Tasks.Task AddToOutFields(params string[] values);
Parameters
values
System.String[]
The elements to add.
Returns
CustomPopupContent.GetOutFields() Method
Asynchronously retrieve the current value of the OutFields property.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<string>?> GetOutFields();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.String>>
CustomPopupContent.OnJsDestroyer(PopupTemplateCreatorEvent) Method
JS-invokable method that triggers the Destroyer function. Should not be called by consuming code.
public System.Threading.Tasks.Task OnJsDestroyer(dymaptic.GeoBlazor.Pro.Events.PopupTemplateCreatorEvent destroyerEvent);
Parameters
destroyerEvent
PopupTemplateCreatorEvent
Returns
CustomPopupContent.OnJsPopupTemplateContentCreator(IJSStreamReference) Method
JS-invokable method that triggers the CreatorFunction function. Should not be called by consuming code.
public System.Threading.Tasks.Task<string?> OnJsPopupTemplateContentCreator(Microsoft.JSInterop.IJSStreamReference jsStreamReference);
Parameters
jsStreamReference
Microsoft.JSInterop.IJSStreamReference
Returns
System.Threading.Tasks.Task<System.String>
CustomPopupContent.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.
CustomPopupContent.RemoveFromOutFields(string[]) Method
Asynchronously remove an element from the OutFields property.
public System.Threading.Tasks.Task RemoveFromOutFields(params string[] values);
Parameters
values
System.String[]
The elements to remove.
Returns
CustomPopupContent.SetOutFields(IReadOnlyList) Method
Asynchronously set the value of the OutFields property after render.
public System.Threading.Tasks.Task SetOutFields(System.Collections.Generic.IReadOnlyList<string>? value);
Parameters
value
System.Collections.Generic.IReadOnlyList<System.String>
The value to set.
Returns
CustomPopupContent.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.