dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Popups
TextPopupContent Class
A TextContent
popup element is used to define descriptive text as an element within a PopupTemplate’s
content.
ArcGIS Maps SDK for JavaScript
public class TextPopupContent : dymaptic.GeoBlazor.Core.Components.Popups.PopupContent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 PopupContent 🡒 TextPopupContent
Constructors
TextPopupContent() Constructor
Parameterless constructor for use as a Razor Component.
public TextPopupContent();
TextPopupContent(string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public TextPopupContent(string? text=null);
Parameters
text
System.String
The formatted string content to display.
ArcGIS Maps SDK for JavaScript
Properties
TextPopupContent.Text Property
The formatted string content to display. This may contain a field name enclosed in {} (e.g. {FIELDNAME}), or an Arcade expression name (e.g. {expression/EXPRESSIONNAME}). Text content may also leverage HTML tags such as , <p></p>, and <table></table> for formatting the look and feel of the content.
public string? Text { get; set; }
Property Value
Remarks
Set the popupTemplate.fieldInfos property for any fields that need to have number formatting within the text.
TextPopupContent.Type Property
The type of Popup Content
public override dymaptic.GeoBlazor.Core.Enums.PopupContentType Type { get; }
Property Value
Methods
TextPopupContent.GetText() Method
Asynchronously retrieve the current value of the Text property.
public System.Threading.Tasks.Task<string?> GetText();
Returns
System.Threading.Tasks.Task<System.String>
TextPopupContent.SetText(string) Method
Asynchronously set the value of the Text property after render.
public System.Threading.Tasks.Task SetText(string? value);
Parameters
value
System.String
The value to set.