dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
FeatureViewModelFormattedAttributes Class
The formatted attributes calculated from `fieldInfo` PopupTemplate content. default null ArcGIS Maps SDK for JavaScript
public class FeatureViewModelFormattedAttributes : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 FeatureViewModelFormattedAttributes
Constructors
FeatureViewModelFormattedAttributes() Constructor
Parameterless constructor for use as a Razor Component.
public FeatureViewModelFormattedAttributes();
FeatureViewModelFormattedAttributes(IReadOnlyList, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public FeatureViewModelFormattedAttributes(System.Collections.Generic.IReadOnlyList<string>? content=null, string? global=null);
Parameters
content System.Collections.Generic.IReadOnlyList<System.String>
The formatted attributes for an individual content element. ArcGIS Maps SDK for JavaScript
global System.String
The formatted attributes specified at the root level of the PopupTemplate using the PopupTemplate.fieldInfos property. ArcGIS Maps SDK for JavaScript
Properties
FeatureViewModelFormattedAttributes.Content Property
The formatted attributes for an individual content element. ArcGIS Maps SDK for JavaScript
public System.Collections.Generic.IReadOnlyList<string>? Content { get; set; }
Property Value
System.Collections.Generic.IReadOnlyList<System.String>
FeatureViewModelFormattedAttributes.Global Property
The formatted attributes specified at the root level of the PopupTemplate using the PopupTemplate.fieldInfos property. ArcGIS Maps SDK for JavaScript
public string? Global { get; set; }
Property Value
Methods
FeatureViewModelFormattedAttributes.AddToContent(string[]) Method
Asynchronously adds elements to the Content property.
public System.Threading.Tasks.Task AddToContent(params string[] values);
Parameters
values System.String[]
The elements to add.
Returns
FeatureViewModelFormattedAttributes.GetContent() Method
Asynchronously retrieve the current value of the Content property.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<string>?> GetContent();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.String>>
FeatureViewModelFormattedAttributes.GetGlobal() Method
Asynchronously retrieve the current value of the Global property.
public System.Threading.Tasks.Task<string?> GetGlobal();
Returns
System.Threading.Tasks.Task<System.String>
FeatureViewModelFormattedAttributes.RemoveFromContent(string[]) Method
Asynchronously remove an element from the Content property.
public System.Threading.Tasks.Task RemoveFromContent(params string[] values);
Parameters
values System.String[]
The elements to remove.
Returns
FeatureViewModelFormattedAttributes.SetContent(IReadOnlyList) Method
Asynchronously set the value of the Content property after render.
public System.Threading.Tasks.Task SetContent(System.Collections.Generic.IReadOnlyList<string>? value);
Parameters
value System.Collections.Generic.IReadOnlyList<System.String>
The value to set.
Returns
FeatureViewModelFormattedAttributes.SetGlobal(string) Method
Asynchronously set the value of the Global property after render.
public System.Threading.Tasks.Task SetGlobal(string? value);
Parameters
value System.String
The value to set.