Types
import type { VisibilityAppearance, FilterPredicate, ListItemModifier, ListItemModifierEvent, Action } from "@arcgis/core/widgets/LayerList/types.js";

Type definitions

VisibilityAppearance

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Specifies the style of the visibility toggle displayed in layer lists.

See also
Type
"default" | "checkbox"

FilterPredicate

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

A function used to filter which ListItem objects appear in the layer list.

See also

Parameters

ParameterTypeDescriptionRequired
item

The list item to evaluate for inclusion.

Returns
boolean

ListItemModifier

Type definition

Parameters

ParameterTypeDescriptionRequired
event

The event containing the list item to customize.

Returns
void

ListItemModifierEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The event object passed to a listItemCreatedFunction in the layer lists. Provides access to the list item being created, allowing you to customize its properties, actions, panel content, or visibility before rendering.

See also

item

Property
Type
ListItem
Since
ArcGIS Maps SDK for JavaScript 5.0

The list item instance created by the LayerList. Modify this object to change the item's text, actions, panel content, or visibility.

State

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the current state of the list items in the LayerListViewModel.

See also
Type
"ready" | "loading" | "disabled"