Widget on-screen configuration
The following table describes the attributes for widget on-screen configuration.
Attribute | Description |
---|---|
panel | Optional. Widgets that are not in a group open in the panel. If not set, the default panel is jimu/OnScreenWidgetPanel. |
widgets | An array of widgets. |
groups | An array of groups. |
Example
"widgetOnScreen": {
"panel": {
"uri": "jimu/PanelType1"
},
"widgets": [{
"uri": "widgets/Header/Widget",
"label": "",
"positionRelativeTo": "map",
"position": {
"left": 0,
"top": 0,
"right": 0,
"bottom": 30,
"width": 100,
"height": 100
},
"openAtStart": true,
"config": {}
}],
"groups": [{
"panel": {
"uri": "jimu/PanelType1",
"positionRelativeTo": "map",
"position": {
"left": 0,
"top": 0,
"right": 0,
"bottom": 30,
"width": 100,
"height": 100
}
},
"widgets": [{
"uri": "widgets/Header/Widget",
"label": ""
}]
}]
},