PopupDefinition QML Type
Defines how a Popup will be displayed and behave. More...
Import Statement: | import Esri.ArcGISRuntime 100.10 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
- deleteAllowed : bool
- description : string
- editGeometryAllowed : bool
- editingAllowed : bool
- expressions : list<PopupExpression>
- fields : list<PopupField>
- initGeoElement : GeoElement
- initPopupSource : PopupSource
- media : list<PopupMedia>
- relatedFeaturesDefinition : PopupRelatedFeaturesDefinition
- showAttachments : bool
- showEditSummary : bool
- title : string
Signals
- deleteAllowedChanged()
- descriptionChanged()
- editGeometryAllowedChanged()
- editingAllowedChanged()
- expressionsChanged()
- fieldsChanged()
- initGeoElementChanged()
- initPopupSourceChanged()
- mediaChanged()
- relatedFeaturesDefinitionChanged()
- showAttachmentsChanged()
- showEditSummaryChanged()
- titleChanged()
Detailed Description
Popup definitions contain information such as:
- Which attributes the Popup should display
- Whether the attributes are editable
- How to format numbers and dates
- Whether the Popup should show attachments for the GeoElement
- What media, such as charts and images, should be displayed for the GeoElement
A PopupDefinition can be instantiated the following ways:
1: Setting a GeoElement (initGeoElement) 2: Setting a PopupSource (initPopupSource) 3: Neither of those (which equates to a default-constructed object).
If initGeoElement and initPopupSource are both provided, initGeoElement will take precedence.
The initGeoElement and initPopupSource properties cannot be changed once any properties have been written to. See option three above for how to instantiate a PopupDefinition.
This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.
Type | Default Property |
---|---|
GeoElement | initGeoElement |
PopupSource | initPopupSource |
PopupField | fields (appends to list) |
PopupMedia | media (appends to list) |
PopupRelatedFeaturesDefinition | relatedFeaturesDefinition (since Esri.ArcGISRuntime 100.1) |
Property Documentation
Whether the PopupSource allows the GeoElement to be deleted.
Whether the PopupSource allows the GeoElement's geometry to be edited.
Whether the PopupSource allows the GeoElement's attributes to be edited.
expressions : list<PopupExpression> |
Returns a list of PopupExpression objects defining the various Arcade expressions on the popup.
This property was introduced in Esri.ArcGISRuntime 100.3.
[default] fields : list<PopupField> |
Returns a list of PopupField objects defining how each field participates in the Popup.
[default] initGeoElement : GeoElement |
The GeoElement used to create the PopupDefinition.
Once this is property is set, the PopupDefinition will be created with it, and the property will be immutable.
[default] initPopupSource : PopupSource |
The PopupSource used to create the PopupDefinition.
Once this is property is set, the PopupDefinition will be created with it, and the property will be immutable.
[default] media : list<PopupMedia> |
Returns a list of PopupMedia objects that define images and charts displayed in the Popup (read-only).
[default] relatedFeaturesDefinition : PopupRelatedFeaturesDefinition |
The PopupRelatedFeaturesDefinition for the PopupDefinition.
This property was introduced in Esri.ArcGISRuntime 100.1.
Whether the Popup should show attachments of the GeoElement.
Whether the Popup should show the edit summary of the GeoElement.
Signal Documentation
Emitted when the deleteAllowed property changes.
Note: The corresponding handler is onDeleteAllowedChanged
.
Emitted when the description property changes.
Note: The corresponding handler is onDescriptionChanged
.
Emitted when the editGeometryAllowed property changes.
Note: The corresponding handler is onEditGeometryAllowedChanged
.
Emitted when the editingAllowed property changes.
Note: The corresponding handler is onEditingAllowedChanged
.
Emitted when the expressions property changes.
Note: The corresponding handler is onExpressionsChanged
.
This signal was introduced in Esri.ArcGISRuntime 100.3.
Emitted when the fields property changes.
Note: The corresponding handler is onFieldsChanged
.
Emitted when the initGeoElement property changes.
Note: The corresponding handler is onInitGeoElementChanged
.
Emitted when the initPopupSource property changes.
Note: The corresponding handler is onInitPopupSourceChanged
.
Emitted when the media property changes.
Note: The corresponding handler is onMediaChanged
.
Emitted when the relatedFeaturesDefinition property changes.
Note: The corresponding handler is onRelatedFeaturesDefinitionChanged
.
This signal was introduced in Esri.ArcGISRuntime 100.1.
Emitted when the showAttachments property changes.
Note: The corresponding handler is onShowAttachmentsChanged
.
Emitted when the showEditSummary property changes.
Note: The corresponding handler is onShowEditSummaryChanged
.
Emitted when the title property changes.
Note: The corresponding handler is onTitleChanged
.