A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html below:

ListItem | API Reference | ArcGIS Maps SDK for JavaScript 4.33

ESM: import TableListItem from "@arcgis/core/widgets/TableList/ListItem.js";

CDN: const TableListItem = await $arcgis.import("@arcgis/core/widgets/TableList/ListItem.js");

Class: @arcgis/core/widgets/TableList/ListItem

Since: ArcGIS Maps SDK for JavaScript 4.17

In the TableList widget UI, the ListItem represents a layer's table added to the widget. It provides access to the associated properties and allows the developer to configure actions related to the table, and allows the developer to add content to the item related to the table.

See also
Property Overview Property Details
actionsOpen Property actionsOpen Boolean

Indicates whether the actions panel is open in the TableList.

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

Since: ArcGIS Maps SDK for JavaScript 4.32 ListItem since 4.17, children added at 4.32.

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

The Error object returned if an error occurred.

Since: ArcGIS Maps SDK for JavaScript 4.24 ListItem since 4.17, hidden added at 4.24.

When true, hides the layer from the TableList instance. This is an alternative to Layer.listMode, which hides a layer from all instances of TableList that include the layer.

Example

The layer associated with the triggered action. This must be a FeatureLayer whose isTable property returns true. For more information regarding working with tables, please refer to Map.tables.

listModeDisabled Property listModeDisabled Boolean

Since: ArcGIS Maps SDK for JavaScript 4.32 ListItem since 4.17, listModeDisabled added at 4.32.

Specifies whether to ignore the listMode property of the child layers in the list item. A common use case for listModeDisabled is when you want to use the TableList to manage and configure a layer's listMode value.

Since: ArcGIS Maps SDK for JavaScript 4.32 ListItem since 4.17, open added at 4.32.

Whether the layer is open in the TableList.

Since: ArcGIS Maps SDK for JavaScript 4.29 ListItem since 4.17, panel added at 4.29.

Allows you to display custom content for each ListItem in the TableList widget.

Example

// displays content from the DOM in the LayerList
const tableList = new TableList({
  view: view,
  listItemCreatedFunction: (event) =>{
    const { item } = event;
    item.panel = {
      content: document.getElementById("myDiv"),
      icon: "graph-bar"
    };
  }
});

Since: ArcGIS Maps SDK for JavaScript 4.32 ListItem since 4.17, parent added at 4.32.

The parent of this item

publishing Property publishing Booleanreadonly

Since: ArcGIS Maps SDK for JavaScript 4.25 ListItem since 4.17, publishing added at 4.25.

Value is true when the layer is being published. Value will be false if the layer is not being published or checkPublishStatusEnabled is false.

uid Property uid Stringreadonly

Since: ArcGIS Maps SDK for JavaScript 4.33 ListItem since 4.17, uid added at 4.33.

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

Method Overview Name Return Type Summary Class clone() ListItem

Creates a deep clone of this object.

ListItem Method Details

Creates a deep clone of this object.

Returns


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4