WidgetManifest

Interface

The widget manifest

Inheritance: WidgetManifestManifest

Properties

Hide inherited properties
PropertyTypeNotes

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.

exbVersion
inherited
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 data actions in setting and runtime

Extensions provided by the widget.

i18nMessages
inherited
any

You don't need to add this property in your code, this property is added at runtime.

label
inherited
string

This should be same as the _widgetLabel value in translation/default.ts

{ label: string; name: string; type?: string }[]

Valid only when the hasEmbeddedLayout is true.

The message actions provided by the widget.

name
inherited
string

The name must be unique and same as folder name.

notAllowAdd
inherited
boolean

Whether the widget can be added to the app, default is false. Widgets that will be deprecated can set this property to true. The code is still available, but the widget will not be shown in the widget list.

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 WidgetManifest.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.

{ label: string; name: string; tooltip?: string }[]

Declare the URL parameters that the widget supports

version
inherited
string

The widget/theme version. The format of the version must follow this pattern: MAJOR.MINOR.PATCH, see semver for details.

dataActions

optional
Interface Property
dataActions: DataActionProperty[]

The data actions provided by the widget

defaultSize

optional
Interface Property
defaultSize: Size & { autoHeight?: boolean; autoWidth?: boolean }

The initial size the widget will be when added into an app.

dependency

optional
Interface Property
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 aDependencyDefine extension.

Pre-defined dependencies:

  • jimu-arcgis: will load the jimu-arcgis package that will load the ArcGIS Maps SDK for JavaScript.

exbVersion

inheritedinherited
Interface Property
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.

Inherited from Manifest.exbVersion

excludeDataActions

optional
Interface Property
excludeDataActions: string[]

Exclude those data actions in setting and runtime

extensions

optional
Interface Property
extensions: ExtensionProperties[]

Extensions provided by the widget.

i18nMessages

inheritedinherited
Interface Property
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<action name>_label: the action label.ext<extension name>_label: the extension label.layout<layout name>_label: the layout label.

Inherited from Manifest.i18nMessages

label

inheritedinherited
Interface Property
label: string

This should be same as the _widgetLabel value in translation/default.ts

Inherited from Manifest.label

layouts

optional
Interface Property
layouts: { label: string; name: string; type?: string }[]

Valid only when the hasEmbeddedLayout is true.

messageActions

optional
Interface Property
messageActions: BaseActionProperty[]

The message actions provided by the widget.

name

inheritedinherited
Interface Property
name: string

The name must be unique and same as folder name.

Inherited from Manifest.name

notAllowAdd

optionalinheritedinherited
Interface Property
notAllowAdd: boolean

Whether the widget can be added to the app, default is false. Widgets that will be deprecated can set this property to true. The code is still available, but the widget will not be shown in the widget list.

Inherited from Manifest.notAllowAdd

properties

optional
Interface Property
properties: WidgetManifestProperties

Widget manifest properties

publishMessages

optional
Interface Property
publishMessages: MessageType | MessageDescription[]

The message types published by the widget.

requireEnterprise

optional
Interface Property
requireEnterprise: boolean

Default value is false. If true, the widget requires an ArcGIS Enterprise subscription.

settingDependency

optional
Interface Property
settingDependency: string | string[]

Dependency for setting component. See WidgetManifest.dependency

translatedLocales

optional
Interface Property
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.

urlParameters

optional
Interface Property
urlParameters: { label: string; name: string; tooltip?: string }[]

Declare the URL parameters that the widget supports

version

inheritedinherited
Interface Property
version: string

The widget/theme version. The format of the version must follow this pattern: MAJOR.MINOR.PATCH, see semver for details.

Inherited from Manifest.version

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