WidgetManifest
Interface
The widget manifest
Properties
Property | Type | Notes |
---|---|---|
DataActionProperty[] | The batch data actions provided by the widget | |
DataActionProperty[] | The data actions provided by the widget | |
Size & { autoHeight?: boolean; autoWidth?: boolean } | The initial size the widget will be when added into an app. | |
string | string[] | Use this property to load third-party libraries. Pass an absolute URL to a library. See the Using third-party libraries guide for more information. | |
string | A widget may only support certain framework versions due to breaking API changes, so this property allows the widget/theme to define the framework version that it supports. This version check is not currently enforced, but will be enforced in the future. | |
string[] | Exclude those batch data actions in setting and runtime | |
string[] | Exclude those data actions in setting and runtime | |
Extensions provided by the widget. | ||
any | You don't need to add this property in your code, this property is added at runtime. | |
string | This should be same as the | |
{ label: string; name: string; type?: string }[] | Valid only when the | |
BaseActionProperty[] | The message actions provided by the widget. | |
string | The name must be unique and same as folder name. | |
Widget manifest properties | ||
The message types published by the widget. | ||
boolean | Default value is false. If true, the widget requires an ArcGIS Enterprise subscription. | |
string | string[] | Dependency for setting component. See dependency | |
string[] | The translated locales the widget provides. Each entry should be a string representing the language version as defined in BCP 47. Examples of valid language codes include "en", "en-US", "fr", "fr-FR", "es-ES", etc. By convention, the default locale is listed first. | |
string | The widget/theme version. |
dataActions
dataActions: DataActionProperty[]
The data actions provided by the widget
defaultSize
defaultSize: Size & { autoHeight?: boolean; autoWidth?: boolean }
The initial size the widget will be when added into an app.
dependency
dependency: string | string[]
Use this property to load third-party libraries. Pass an absolute URL to a library. See the Using third-party libraries guide for more information.
Alternatively, a widget can define its own dependencies by providing a
DependencyDefine
extension.
Pre-defined dependencies:
- jimu-arcgis: will load the
jimu-arcgis
package that will load the ArcGIS Maps SDK for JavaScript.
exbVersion
exbVersion: string
A widget may only support certain framework versions due to breaking API changes, so this property allows the widget/theme to define the framework version that it supports. This version check is not currently enforced, but will be enforced in the future.
excludeBatchDataActions
excludeBatchDataActions: string[]
Exclude those batch data actions in setting and runtime
excludeDataActions
excludeDataActions: string[]
Exclude those data actions in setting and runtime
extensions
extensions: ExtensionProperties[]
Extensions provided by the widget.
i18nMessages
i18nMessages: any
You don't need to add this property in your code, this property is added at runtime.
Save the current locale only, but not the default locale.
The default string should be written in manifest.
There are some conventional keys:widgetLabel: the widget label.
_action
label
label: string
This should be same as the _widgetLabel
value in translation/default.ts
layouts
layouts: { label: string; name: string; type?: string }[]
Valid only when the hasEmbeddedLayout
is true.
messageActions
messageActions: BaseActionProperty[]
The message actions provided by the widget.
properties
properties: WidgetManifestProperties
Widget manifest properties
publishMessages
publishMessages: MessageType | MessageDescription[]
The message types published by the widget.
requireEnterprise
requireEnterprise: boolean
Default value is false. If true, the widget requires an ArcGIS Enterprise subscription.
settingDependency
settingDependency: string | string[]
Dependency for setting component. See dependency
translatedLocales
translatedLocales: string[]
The translated locales the widget provides. Each entry should be a string representing the language version as defined in BCP 47. Examples of valid language codes include "en", "en-US", "fr", "fr-FR", "es-ES", etc. By convention, the default locale is listed first.
batchDataActions: DataActionProperty[]
The batch data actions provided by the widget