ListItem

AMD: require(["geoscene/widgets/TableList/ListItem"], (ListItem) => { /* 代码 */ });
ESM: import ListItem from "@geoscene/core/widgets/TableList/ListItem";
类: geoscene/widgets/TableList/ListItem
起始版本: GeoScene API for JavaScript 4.22

在  TableList widget  UI 中,ListItem 表示添加到小部件的图层表。 它提供对关联属性的访问,并允许开发人员配置与表格相关的操作,并允许开发人员将内容添加到与表格相关的项目中。

示例:

属性列表

属性 类型 描述
Boolean更多信息

表示操作面板是否在列表中打开。

更多信息ListItem
Collection<Collection<(ActionButton|ActionToggle)>>更多信息

可以在项目上触发的嵌套二维操作集合。

更多信息ListItem
Error更多信息

发生错误时返回 Error 对象。

更多信息ListItem
Layer更多信息

与触发动作关联的层。

更多信息ListItem
String更多信息

表格标题。

更多信息ListItem

属性详细说明

actionsOpen Boolean

表示操作面板是否在列表中打开。

默认值:false
自动转换自 Object[][]

可在项目上触发的嵌套二维动作集合。

error Errorreadonly

发生错误时返回 Error 对象。

layer Layer

与触发动作关联的层。这必须是一个 isTable 属性返回true的 FeatureLayer 。有关使用表的更多信息,请参阅  Map.tables

默认值:null
示例:
title String

表格标题。

方法列表

属性 返回值类型 描述
ListItem更多信息

深拷贝对象。

更多信息ListItem

方法详细说明

clone(){ListItem}

深拷贝对象。

返回值:
ListItem 是新 ListItem 实例的克隆。
类型 描述

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.