Widget properties

The following are additional properties to use in widgets:

NameDescription

id

The unique ID of the widget set in the config.json file or generated by the app container.

icon

The widget’s icon URL.

config

The widget’s config object.

map

The map this widget works with (for 2D widget).

sceneView

The scene this widget works with (for 3D widget).

appConfig

The app's main config.json file is stored here.

folderUrl

The widget folder’s URL.

state

The widget’s current state, that is, active, opened or closed.

windowState

The widget’s current window state, that is, normal, maximized, or minimized.

position

The widget's position. It is important for on-screen widget.