layout: default title: TextPopupContent parent: Core Classes —

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. The
text may reference values returned from a field attribute or an Arcade expression defined in a PopupTemplate’s
expressionInfos property.
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 creating a TextPopupContent in code.

public TextPopupContent(string? text=null);

Parameters

text System.String

The formatted string content to display.

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

System.String

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 string Type { get; }

Property Value

System.String