GroupInput

AMD: require(["geoscene/widgets/FeatureForm/GroupInput"], (GroupInput) => { /* code goes here */ });
ESM: import GroupInput from "@geoscene/core/widgets/FeatureForm/GroupInput.js";
类: geoscene/widgets/FeatureForm/GroupInput
继承于:GroupInput Accessor
起始版本:GeoScene Maps SDK for JavaScript 4.27

这是一个只读支持类,表示一组字段输入。

另请参阅

属性概述

所有属性都可以设置、获取和监听。请参阅使用属性主题。
显示继承属性 隐藏继承属性
名称 类型 描述
String

类的名称。

更多详情
Accessor
String

输入的说明。

更多详情
GroupInput
FieldInput[]|RelationshipInput[]

组中包含的字段输入。

更多详情
GroupInput
String

组的标注。

更多详情
GroupInput
String可能值"expanded"|"collapsed"more detailsGroupInput
String对于 GroupInput,类型总是 "group"更多详情GroupInput
Boolean

组的可见性。

更多详情
GroupInput

属性详细信息

declaredClass Stringreadonly inherited

类的名称。声明的类名称格式化为 geoscene.folder.className

description Stringreadonly

输入的说明。

组中包含的字段输入。

label Stringreadonly

组的标注。

state String

可能的值"expanded"|"collapsed"

默认值:expanded
type Stringreadonly

对于 GroupInput,类型总是 "group"

visible Booleanreadonly

组的可见性。

方法概述

显示继承的方法 隐藏继承的方法
名称 返回值类值 描述

添加一个或多个与对象生命周期相关联的句柄

更多详情
Accessor
Boolean

如果存在指定的句柄组,则返回 true。

更多详情
Accessor

移除对象拥有的句柄组。

更多详情
Accessor

方法详细说明

addHandles(handleOrHandles, groupKey)inherited

添加一个或多个与对象的生命周期相关联的句柄。当对象被销毁时,将移除句柄。

// Manually manage handles
const handle = reactiveUtils.when(
  () => !view.updating,
  () => {
    wkidSelect.disabled = false;
  },
  { once: true }
);

this.addHandles(handle);

// Destroy the object
this.destroy();
参数
handleOrHandles WatchHandle|WatchHandle[]

对象销毁后,标记为要移除的句柄。

groupKey *
optional

标识句柄应添加到的组的键。组中的所有句柄稍后都可使用 Accessor.removeHandles() 进行删除。如果未提供键,则句柄将被添加到默认组。

hasHandles(groupKey){Boolean}inherited

如果存在指定的句柄组,则返回 true。

参数
groupKey *
optional

组键。

返回
类型 描述
Boolean 如果存在指定的句柄组,则返回 true
示例
// Remove a named group of handles if they exist.
if (obj.hasHandles("watch-view-updates")) {
  obj.removeHandles("watch-view-updates");
}
removeHandles(groupKey)inherited

移除对象拥有的句柄组。

参数
groupKey *
optional

要移除的组键或组键的数组或集合。

示例
obj.removeHandles(); // removes handles from default group

obj.removeHandles("handle-group");
obj.removeHandles("other-handle-group");

您的浏览器不再受支持。请升级您的浏览器以获得最佳体验。