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.
- 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.
ListItemModifier
Type definition
- Since
- ArcGIS Maps SDK for JavaScript 5.0
A function for customizing a list item as it is created in the layer lists.
- See also
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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.
Action
Type definition
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An action element that can be used in the layer lists.
- Type
- ActionButton | ActionToggle
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"