Represents an immutable list of portal items. More...
Import Statement | import Esri. |
Since | Esri. |
Properties
Signals
Methods
- bool contains(PortalItem portalItem)
- error forEach(callback)
- PortalItem get(int index)
- int indexOf(PortalItem portalItem)
Detailed Description
A PortalItem is a unit of content in the Portal.
The model returns data for the following roles:
Role | Type | Description |
---|---|---|
url | url | The UR |
item | string | The I |
access | Enums. | The level of access to the item. |
access | string | The access and use constraints HTM |
average | real | The average rating of the item. |
comment | int | The number of comments for the item. |
comments | bool | Whether comments are allowed on the item. |
culture | string | The item locale information (language and country). |
folder | string | The I |
name | string | The name of this item. |
owner | string | The username of the user who owns the item. |
rating | int | The number of ratings received by the item. |
service | url | The service UR |
size | qint64 | The size of the item in bytes. |
type | Enums. | The type of the item. |
type | list | A set of keywords that further describes the type of the item. |
type | string | The name of the type of this item. |
view | int | The number of times this item has been viewed. |
description | string | The item description. |
extent | Envelope | The bounding rectangle of the item. |
snippet | string | The short summary description of the item. |
title | string | The title of the item. |
access | string | The access information on the source of the item. |
tags | list | The user-defined tags that describe the item. |
created | date | The creation date of the item. |
modified | date | The date the item was last modified. |
spatial | Spatial | The spatial reference of the item. |
See also Portal, PortalUser, and PortalItem.
Property Documentation
error : Error |
Returns the error (if any) that occurred (read-only).
Signal Documentation
Emitted when the count property of the model changes.
Note: The corresponding handler is onCountChanged
.
Signal emitted when the error property changes, which can indicate that an error occurred.
Note: The corresponding handler is onErrorChanged
.
Method Documentation
bool contains(Portal |
Returns true
if the list model contains the specified portalItem.
Receives a callback function to execute for each portalItem in the model.
The callback function can take 0 to 3 optional arguments, in order:
- element - The current PortalItem.
- index - The current index in array.
- array - Reference to ImmutablePortalItemListModel.
Returns undefined if no error occurred, and an error message otherwise.
const error = ImmutablePortalItemListModel.forEach(function(element, index, array) { ... }); if (error) { console.error(error.message); }
Portal |
Returns the PortalItem at the specified index.
int index |
Returns the index of the portal item (portalItem) specified.
This method was introduced in Esri::ArcGISRuntime 100.5..