Class: esri/widgets/LayerList/ListItem
Since: ArcGIS API for JavaScript 4.2

The ListItem class represents one of the operationalItems in the LayerListViewModel.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
NameTypeSummary
Boolean

Whether the actional panel is open in the LayerList.

more details
more details
Collection

A nested 2-dimensional collection of actions that could be triggered on the item.

more details
more details
Collection

When a layer contains sublayers, this property is a Collection of ListItem objects belonging to the given layer.

more details
more details
Error

The Error object returned if an error occurred.

more details
more details
Layer

The layer associated with the triggered action.

more details
more details
LayerView

The LayerView displaying data for the associated layer.

more details
more details
Boolean

Whether the layer is open in the LayerList.

more details
more details
String

The title of the layer.

more details
more details
Boolean

Value is true when the layer is updating; for example, if it is in the process of fetching data.

more details
more details
MapView | SceneView

The view from which the widget will operate.

more details
more details
String

Indicates how to manage the visibility of the children layers.

more details
more details
Boolean

Indicates if the ListItem is visible.

more details
more details
Boolean

Whether the layer is visible at the current scale or not.

more details
more details

Property Details

actionsOpenBoolean

Whether the actional panel is open in the LayerList.

Default Value: false

actionsSectionsCollection autocast

A nested 2-dimensional collection of actions that could be triggered on the item.

See also:

childrenCollection

When a layer contains sublayers, this property is a Collection of ListItem objects belonging to the given layer.

errorErrorreadonly

The Error object returned if an error occurred.

layerLayer

The layer associated with the triggered action.

Default Value: null

layerViewLayerViewreadonly

The LayerView displaying data for the associated layer.

Whether the layer is open in the LayerList.

Default Value: false

titleString

The title of the layer.

updatingBooleanreadonly

Value is true when the layer is updating; for example, if it is in the process of fetching data.

Default Value: false

The view from which the widget will operate.

visibilityModeStringreadonly

Indicates how to manage the visibility of the children layers.

visibleBoolean

Indicates if the ListItem is visible.

Default Value: true

visibleAtCurrentScaleBooleanreadonly

Whether the layer is visible at the current scale or not.

Default Value: true

Method Overview

NameReturn TypeSummary
ListItem

Creates a deep clone of this object.

more details
more details

Method Details

clone(){ListItem}

Creates a deep clone of this object.

Returns:
TypeDescription
ListItemA clone of the new ListItem instance.

API Reference search results

NameTypeModule

There were no match results from your search criteria.