import ItemPanel from "@arcgis/core/layerList/ItemPanel.js";
Inheritance
ItemPanel→Accessor
Since
ArcGIS Maps SDK for JavaScript 5.2
beta

Stores state for additional content associated with a layer-list item.

This class does not render UI. Consumer components use its content, presentation, and interaction state to render a panel associated with an Item.

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
properties

The properties used to configure the panel.

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.

content

Property
Type
ItemPanelContents | null | undefined

The content to display in the panel. Content may be a string, an HTMLElement, the "legend" keyword, or an array of content values.

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.

disabled

Property
Type
boolean

Indicates whether the panel cannot be opened or interacted with.

Default value
false

flowEnabled

Property
Type
boolean

Indicates whether a consumer UI should display the panel in a drill-in flow. When true, the panel can be rendered as a separate flow step instead of inline content.

Default value
false

icon

Property
Type
string | null | undefined

The icon identifier used by a consumer UI to represent this panel.

image

Property
Type
string | null | undefined

A URL or data URI for an image used by a consumer UI to represent this panel.

listItem

Property
Type
Item | null | undefined

The list item that owns this panel. This association is set automatically when the panel is assigned to an item.

open

Property
Type
boolean

Indicates whether the panel is open in a consumer UI.

Default value
false

title

Property
Type
string

The title displayed by a consumer UI for this panel.

Default value
""

uid

readonlyinherited Property
Type
string
Inherited from: IdentifiableMixin
Since
ArcGIS Maps SDK for JavaScript 4.33

An automatically generated unique identifier assigned to the instance. The unique id is generated each time the application is loaded.

visible

Property
Type
boolean

Indicates whether a consumer UI should display this panel. Set to false to hide the panel while preserving its content and state.

Default value
true