A view for displaying and editing information about a feature. More...
Since: | Esri.ArcGISRuntime 100.10 |
Properties
- closeCallback : var
- controller : var
- popupManager : var
Signals
- attachmentThumbnailClicked(var index)
Detailed Description
A PopupView can be used to display information for any type that implements the PopupSource interface. For example, FeatureLayer implements PopupSource. This means that it has a PopupDefinition, which defines how the Popup should look for any features in that layer. An example workflow for displaying a PopupView for a feature in a FeatureLayer would be:
- Declare a PopupView and anchor it to a desired location.
- Perform an identify operation on a GeoView and select a Feature from the identify result.
- Create a Popup from the Feature.
- Optionally obtain the Popup's PopupDefinition and set the title, whether to show attachments, and so on.
- Create a PopupManager from the Popup.
- Assign the PopupView's
popupManager
property the PopupManager created in the previous step.
The PopupView is a QML Item that can be anchored, given to a dialog, or positioned using XY screen coordinates. Transform, Transition, and other QML animation types can be used to animate the showing and dissmisal of the view. For more information, please see the Popup and PopupManager documentation.
Note: Each time a change is made to the Popup, PopupDefinition, PopupManager, or any of their properties, the PopupManager must be re-set to the PopupView.
Property Documentation
closeCallback : var |
Callback function called when the close button is clicked. When this property is set to null the close button does not render. When the close button is clicked the function in this property is called. Defaults to setting visible to false.
controller : var |
The Controller handles reading from the PopupManager and monitoring the list-models.
The CPP controller is documented here.
popupManager : var |
The PopupManager that controls the information being displayed in the view.
The PopupManager should be created from a Popup.
Signal Documentation
attachmentThumbnailClicked(var index) |
Signal emitted when an attachment thumbnail is clicked. The index of the PopupAttachment in the PopupAttachmentListModel that was clicked on by the user.
Note: The corresponding handler is onAttachmentThumbnailClicked
.