▾
import ItemPanel from "@arcgis/core/layerList/ItemPanel.js";const ItemPanel = await $arcgis.import("@arcgis/core/layerList/ItemPanel.js");- Inheritance
- ItemPanel→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 5.2
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
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | The properties used to configure the panel. | |
Properties
| Property | Type | Class |
|---|---|---|
| | ||
| readonly inherited | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| readonly inherited | ||
| |
content
- 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.
disabled
- Type
- boolean
Indicates whether the panel cannot be opened or interacted with.
- Default value
- false
flowEnabled
- 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
open
- Type
- boolean
Indicates whether the panel is open in a consumer UI.
- Default value
- false
uid
- Type
- string
- 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
- 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