-
container
String
|
HTMLElement
inherited
表示包含小部件的 DOM 元素的 ID 或节点。该属性只能设置一次。以下示例都是使用小部件时的有效用例。
例子:
// Create the HTML div element programmatically at runtime and set to the widget's container const basemapGallery = new BasemapGallery({ view: view, container: document.createElement("div") }); // Add the widget to the top-right corner of the view view.ui.add(basemapGallery, { position: "top-right" });
// Specify an already-defined HTML div element in the widget's container const basemapGallery = new BasemapGallery({ view: view, container: basemapGalleryDiv }); // Add the widget to the top-right corner of the view view.ui.add(basemapGallery, { position: "top-right" }); // HTML markup <body> <div id="viewDiv"></div> <div id="basemapGalleryDiv"></div> </body>
// Specify the widget while adding to the view's UI const basemapGallery = new BasemapGallery({ view: view }); // Add the widget to the top-right corner of the view view.ui.add(basemapGallery, { position: "top-right" });
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/widgets/Attachments"], (Attachments) => { /* code goes here */ });
ESM:
import Attachments from "@arcgis/core/widgets/Attachments";
类:
esri/widgets/Attachments
继承: Attachments > Widget > Accessor
自从:用于 JavaScript 4.15 的 ArcGIS API
用法说明
Attachments.container
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS Attachments.classes用法及代码示例
- JavaScript ArcGIS Attachments.when用法及代码示例
- JavaScript ArcGIS Attachments.on用法及代码示例
- JavaScript ArcGIS Attachments.visible用法及代码示例
- JavaScript ArcGIS AttachmentsContent用法及代码示例
- JavaScript ArcGIS AttachmentQuery.keywords用法及代码示例
- JavaScript ArcGIS AttachmentQuery.name用法及代码示例
- JavaScript ArcGIS AttachmentQuery.attachmentsWhere用法及代码示例
- JavaScript ArcGIS Attribution.classes用法及代码示例
- JavaScript ArcGIS Attribution.container用法及代码示例
- JavaScript ArcGIS Attribution.when用法及代码示例
- JavaScript ArcGIS Attribution.visible用法及代码示例
- JavaScript ArcGIS AttributeColorInfo用法及代码示例
- JavaScript ArcGIS AttributeColorInfo.clone用法及代码示例
- JavaScript ArcGIS Attribution.on用法及代码示例
- JavaScript Atomics.xor()用法及代码示例
- JavaScript Atomics.isLockFree()用法及代码示例
- JavaScript Atomics.add()用法及代码示例
- JavaScript Atomics.and()用法及代码示例
- JavaScript Atomics.or()用法及代码示例
- JavaScript Atomics.store()用法及代码示例
- JavaScript Atomics.load()用法及代码示例
- JavaScript Atomics.sub()用法及代码示例
- JavaScript ArcGIS AreaMeasurement3D.analysis用法及代码示例
- JavaScript Array values()用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 Attachments.container。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。