UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

36 lines (34 loc) 2.28 kB
import type Graphic from "../../../Graphic.js"; import type InputBase from "./InputBase.js"; import type { AttributeFormSupportedLayerUnion } from "../types.js"; import type { InputBaseProperties } from "./InputBase.js"; /** @since 5.0 */ export interface SingleFeatureInputProperties<Template extends any = any> extends InputBaseProperties {} /** * A read-only class used by [TextElementInput](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/inputs/TextElementInput/) and used within the [BatchAttributeForm](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/). * * @since 5.0 */ export default abstract class SingleFeatureInput<Template extends any = any> extends InputBase<Template> { /** * The single feature associated with this form element. * * @see [BatchAttributeFormViewModel.features](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel/#features) */ get feature(): Graphic | null | undefined; /** * Identifies the single feature layer associated with this form 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; }