import TextElementInput from "@arcgis/core/widgets/FeatureForm/TextElementInput.js";const TextElementInput = await $arcgis.import("@arcgis/core/widgets/FeatureForm/TextElementInput.js");- Inheritance:
- TextElementInput→
InputBase<TextElement>→ Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.32
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
See the properties table for a list of all the
properties that may be passed into the constructor.
Properties
Any properties can be set, retrieved or listened to. See the
Watch for changes
topic.
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
expressionsUsed readonly | string[] | |
fieldsUsed readonly | string[] | |
group readonly | GroupInput | null | undefined | |
rawText readonly | | |
text readonly | | |
textFormat readonly | | |
type readonly | "text" | |
expressionsUsed
readonly Property
- Type
- string[]
All Aracde expressions referenced, via string substitution, in the text
content. The strings in this array are the names of the expressionInfo
objects defining the expressions in the FormTemplate.
fieldsUsed
readonly Property
- Type
- string[]
The names of all fields referenced, via string templates, in the text content.
group
readonly Property
- Type
- GroupInput | null | undefined
The group containing the text element input.
rawText
readonly Property
The content of the TextElement, as a string in either plain-text (no formatting) or Markdown. See TextElement.text for details on supported Markdown features and on field and Arcade expression substitution.
text
readonly Property
- Type
- string
The processed text, compiled and with template parameters replaced with values.
textFormat
readonly Property
- Type
- TextFormatType
Defines the format of the text property.
- Default value
- "plain-text"