PopupAttributeListModel QML Type

  • Esri.ArcGISRuntime
  • PopupAttributeListModel
  • A list model used for viewing and editing attributes in a Popup. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.0

    Properties

    Signals

    Methods

    • error forEach(callback)
    • PopupField get(int index)

    Detailed Description

    Obtain a PopupAttributeListModel from the PopupManager.

    Note: You cannot declare or create a component of this type in QML code.

    The model returns data for the following roles:

    RoleTypeDescription
    fieldNamestringThe field name for the PopupField.
    fieldValuevarThe value for the PopupField.
    popupDateFormatEnums.PopupDateFormatThe PopupDateFormat for the PopupField.
    decimalPlacesintThe number of decimal places to display for numerical fields.
    useThousandsSeparatorboolIf the thousands separator should be used.
    editableboolWhether the PopupField is editable.
    nullableboolWhether the PopupField is nullable.
    labelstringThe PopupField label.
    popupStringFieldOptionEnums.PopupStringFieldOptionThe PopupStringFieldOption for the PopupField.
    tooltipstringThe tooltip for the PopupField.
    formattedValuestringThe formatted value for the PopupField.
    fieldTypeEnums.FieldTypeThe FieldType for the PopupField.
    maxLengthintThe maxmimum length for the PopupField.
    featureTypeboolWhether the PopupField is a feature type.
    validationErrorTextstringThe validation error text if there is any.
    rangeDomainValidationTextstringThe range domain validation text if applicable.
    attributeVisibleboolWhether the PopupField is visible (since Esri.ArcGISRuntime 100.1).

    Property Documentation

    [read-only] count : int

    Returns the number of objects in the model (read-only).


    [read-only] error : Error

    Returns the Error object (read-only).


    Signal Documentation

    countChanged()

    Emitted when the count property of the model changes.

    Note: The corresponding handler is onCountChanged.


    errorChanged()

    Emitted when the error property changes, which can indicate that an error occurred.

    Note: The corresponding handler is onErrorChanged.


    Method Documentation

    error forEach(callback)

    Receives a callback function to execute for each popupField in the model.

    The callback function can take 0 to 3 optional arguments, in order:

    Returns undefined if no error occurred, and an error message otherwise.

    const error = PopupAttributeListModel.forEach(function(element, index, array) {
        ...
    });
    if (error) {
        console.error(error.message);
    }

    PopupField get(int index)

    Returns the PopupField at the specified index.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.