例子:
// Create a new form template const formTemplate = new FormTemplate({ title: "Damage assessments", description: "Provide information for insurance", elements: [{ // Autocasts to new GroupElement type: "group", label: "Inspector Information", description: "Field inspector information", elements: [{ // Autocasts to new FieldElement type: "field", fieldName: "inspector", label: "name" },{ type: "field", fieldName: "inspemail", label: "Email address" },{ type: "field", fieldName: "insp_date", label: "Date of inspection" }] }] });
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/form/FormTemplate"], (FormTemplate) => { /* code goes here */ });
ESM:
import FormTemplate from "@arcgis/core/form/FormTemplate";
類:
esri/form/FormTemplate
繼承: FormTemplate > Accessor
自從:用於 JavaScript 4.16 的 ArcGIS API
用法說明
FormTemplate.elements
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS FormTemplate用法及代碼示例
- JavaScript ArcGIS Font用法及代碼示例
- JavaScript ArcGIS FoggyWeather用法及代碼示例
- JavaScript ArcGIS Font.size用法及代碼示例
- JavaScript ArcGIS Font.family用法及代碼示例
- JavaScript ArcGIS FillSymbol3DLayer.outline用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryExtent用法及代碼示例
- JavaScript ArcGIS FlowRenderer用法及代碼示例
- JavaScript ArcGIS FeatureLayer.when用法及代碼示例
- JavaScript FeatureForm.when用法及代碼示例
- JavaScript ArcGIS FeatureLayer refresh事件用法及代碼示例
- JavaScript Function.displayName屬性用法及代碼示例
- JavaScript ArcGIS FeatureLayer.getFieldDomain用法及代碼示例
- JavaScript ArcGIS FillSymbol3DLayer.castShadows用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryFeatureCount用法及代碼示例
- JavaScript FloorFilter.headingLevel用法及代碼示例
- JavaScript FeatureForm.getValues用法及代碼示例
- JavaScript FeatureForm.visible用法及代碼示例
- JavaScript FieldColumnConfig.initialSortPriority用法及代碼示例
- JavaScript ArcGIS Feature.visible用法及代碼示例
- JavaScript ArcGIS FeatureLayer.formTemplate用法及代碼示例
- JavaScript ArcGIS Feature用法及代碼示例
- JavaScript FeatureForm.classes用法及代碼示例
- JavaScript ArcGIS FeatureLayer.relationships用法及代碼示例
- JavaScript ArcGIS FindParameters.layerIds用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 FormTemplate.elements。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。