Skip to content
import PortalRating from "@arcgis/core/portal/PortalRating.js";
Inheritance:
PortalRatingAccessor
Since
ArcGIS Maps SDK for JavaScript 4.2

PortalRating provides details about the rating associated with a Portal item. View the ArcGIS REST API documentation for the Item Rating for more details.

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
declaredClass
readonly inherited

created

autocast Property
Type
Date | null | undefined

Date the rating was added to the item.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

rating

Property
Type
number | null | undefined

A rating between 1.0 and 5.0 for the item.