Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: PortalFolder

require(["esri/arcgis/Portal"], function(arcgisPortal) { /* code goes here */ });

Description

(Added at v2.8)
The PortalFolder class provides information about folders used to organize content in a portal. Folders are only visible to the user and are used for organizing content within the user's content space.

Samples

Search for samples that use this class.

Properties

NameTypeSummary
createdDateThe date the folder was created.
idStringThe id of the folder.
portalPortalThe portal for the folder.
titleStringThe title of the folder.
urlStringThe url to to the folder.

Methods

NameReturn typeSummary
getItems()DeferredFind all the items in the folder.
Property Details

<Date> created

The date the folder was created.

<String> id

The id of the folder.

<Portal> portal

The portal for the folder.

<String> title

The title of the folder.

<String> url

The url to to the folder.
Method Details

getItems()

Find all the items in the folder. Returns a deferred that when resolved provides access to an array of PortalItem objects.
Return type: Deferred
Sample:
 portalFolder.getItems().forEach(function(item){
    console.log(item.name)
 });
Show Modal