import type Graphic from "../../../Graphic.js"; import type GroupInput from "./GroupInput.js"; import type InputBase from "./InputBase.js"; import type { AttributeFormSupportedLayerUnion } from "../types.js"; import type { InputBaseProperties } from "./InputBase.js"; /** @since 5.0 */ export interface TextElementInputProperties extends InputBaseProperties {} /** * This is a read-only support class that represents a [text element](https://developers.arcgis.com/javascript/latest/references/core/form/elements/TextElement/) in a [BatchAttributeForm](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/). * * @since 5.0 * @see [BatchAttributeForm](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/) * @see [BatchAttributeFormViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel/) * @see [BatchFormInputs](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/inputs/BatchFormInputs/) */ export default class TextElementInput extends InputBase { constructor(properties: TextElementInputProperties); /** * The single feature associated with this text element. * * @since 5.0 * @see [BatchAttributeFormViewModel.features](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel/#features) */ get feature(): Graphic | null | undefined; /** * The group containing the text element input. * * @since 5.0 */ get group(): GroupInput | null; /** * Identifies the single feature layer associated with this text element. The layer must support feature editing and field access. * * The following layer types are supported: * - [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/) * - [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/) * - [SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/) (with `featureLayer` property) * - [SubtypeSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/SubtypeSublayer/) * - [OrientedImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OrientedImageryLayer/) * - [KnowledgeGraphSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/knowledgeGraph/KnowledgeGraphSublayer/) * * @since 5.0 * @see [BatchAttributeFormViewModel.layers](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel/#layers) */ get layer(): AttributeFormSupportedLayerUnion | null | undefined; /** * The processed text, compiled and with expressions replaced with values. * * @since 5.0 */ get text(): string; /** * The type of input. * * @since 5.0 */ get type(): "text"; }