import type { Alignment, PopupAction, InitialDisplayOptions, PopupOpenOptions, DockOptions } from "@arcgis/core/popup/types.js";Type definitions
Alignment
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- PopupPositionValue | (() => PopupPositionValue)
PopupAction
- Since
- ArcGIS Maps SDK for JavaScript 5.1
- Type
- ActionButton | ActionToggle
InitialDisplayOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.1
- Type
- "list" | "feature"
DockOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.0
breakpoint
- Type
- DockOptionsBreakpoint | boolean | undefined
The breakpoint options for docking.
FetchFeaturesOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.0
event
- Type
- ClickEvent | undefined
The view click event that is passed into the fetchFeatures method.
PopupDockPosition
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- PopupPositionValue | (() => PopupPositionValue)
PopupOutsideViewSide
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- "bottom" | "left" | "right" | "top"
PopupPositionResult
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- "bottom-center" | "bottom-left" | "bottom-right" | "top-center" | "top-left" | "top-right"
PopupPositionVariable
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- "auto" | "bottom-end" | "bottom-start" | "top-end" | "top-start"
PopupTemplateContentCreated
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Custom element content.
- Type
- string | HTMLElement | null | undefined
PopupTemplateContentCreatorFunction
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The function that is called to create the custom content element.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| event | The event that contains the Graphic used to represent the feature. | |
- Returns
- PopupTemplateContentCreated | PopupTemplateContentCreatorPromise
The created custom content element.
PopupTemplateContentCreatorPromise
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Supertypes
- Promise<PopupTemplateContentCreated>
PopupTemplateContentDestroyer
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The function that is called to destroy the custom content element.
PopupTemplateContentFunction
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| event | The event that contains the Graphic used to represent the feature. | |
PopupTemplateContentPromise
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Supertypes
- Promise<PopupTemplateContentResolved>
PopupTemplateContentResolved
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- PopupTemplateContentCreated | Content[]
PopupTemplateCreatorEvent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The event that contains the Graphic used to represent the feature.
PopupTemplateTitleFunction
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| event | The event that contains the Graphic used to represent the feature. | |
PopupTemplateTitlePromise
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Supertypes
- Promise<PopupTemplateTitleResolved>
State
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- "disabled" | "ready" | "error" | "loading"
FeatureFormattedAttributes
- Since
- ArcGIS Maps SDK for JavaScript 5.1
global
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The formatted attributes specified at the root level of the PopupTemplate using the PopupTemplate.fieldInfos property.
content
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The formatted attributes for an individual content element. This is derived from the PopupTemplate, or per an individual content element. This element is defined with a FieldsContent popup element set on the PopupTemplate's PopupTemplate.content.
LastEditInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.1
user
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.1
User who performed the last edit on a feature.
LayerInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Information about the layer associated with the feature.
fields
- Type
- Field[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of the layer's fields.
relationships
- Type
- Relationship[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of the layer's relationships.
objectIdField
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The object ID field of the layer.
supportsStatistics
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Indicates whether the layer supports statistics.
RelatedInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.1
outStatistics
- Type
- StatisticDefinition[] | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of statistics to be calculated for the related features.
relation
- Type
- Relationship | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The relationship between the current feature and the related features.
sourceSpatialReference
- Type
- SpatialReference | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The spatial reference of the source feature.