GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
FormElement Class
Form elements define what should display within the FormTemplate elements.
ArcGIS Maps SDK for JavaScript
public abstract class FormElement : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 FormElement
Derived
↳ FieldElement
↳ GroupElement
Properties
FormElement.Description Property
The element’s description providing the purpose behind it.
public string? Description { get; set; }
Property Value
FormElement.Label Property
A string value containing the field alias. This is not to Arcade expressions as the title is used instead.
public string? Label { get; set; }
Property Value
FormElement.Type Property
Indicates the type of form element.
public abstract string Type { get; }
Property Value
FormElement.VisibilityExpression Property
A reference to the name of an Arcade expression defined in the expressionInfos of the FormTemplate. The expression must follow the specification defined by the Form Constraint Profile. Expressions may reference field values using the $feature profile variable and must return either true or false.
public string? VisibilityExpression { get; set; }
Property Value
Remarks
When this expression evaluates to true, the element is displayed. When the expression evaluates to false the element is not displayed. If no expression is provided, the element is always displayed. Care must be taken when defining a visibility expression for a non-nullable field i.e. to make sure that such fields either have default values or are made visible to users so that they can provide a value before submitting the form.
The referenced expression must be defined in the form template’s expressionInfos. It cannot be set inline within the element object.
Methods
FormElement.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>
FormElement.GetLabel() Method
Asynchronously retrieve the current value of the Label property.
public System.Threading.Tasks.Task<string?> GetLabel();
Returns
System.Threading.Tasks.Task<System.String>
FormElement.GetVisibilityExpression() Method
Asynchronously retrieve the current value of the VisibilityExpression property.
public System.Threading.Tasks.Task<string?> GetVisibilityExpression();
Returns
System.Threading.Tasks.Task<System.String>
FormElement.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
FormElement.SetLabel(string) Method
Asynchronously set the value of the Label property after render.
public System.Threading.Tasks.Task SetLabel(string? value);
Parameters
value
System.String
The value to set.
Returns
FormElement.SetVisibilityExpression(string) Method
Asynchronously set the value of the VisibilityExpression property after render.
public System.Threading.Tasks.Task SetVisibilityExpression(string? value);
Parameters
value
System.String
The value to set.