JSON reference for the pages (dashboards) asset in Dawiso packages.
Property description
The pages asset configures pages (also called dashboards) or parts of a page. Links to the pages can be displayed in the following locations:
| Page type | With a parent page | Without a parent page |
|---|
| Displayed on | Dawiso homepage (if there is just one page/dashboard, the homepage won’t have any tabs), Dashboards tab in the top navigation bar | Dashboards tab in the top navigation bar, Their parent page |
Minimal JSON
{
"key": "",
"name": "",
"template": {}
}
{
"key": "dashboard_favourites",
"name": "Favourites",
"description": "",
"state": "active",
"url": "dashboard_favourites",
"iconKey": "favourite",
"template": {
"centerArea": [
{
"componentId": "favourites",
"type": "api-card",
"api": "api/dashboard/favourites",
"headerTitle": "page.home.favourites.title.key",
"noDataText": "page.home.favourites.no_data.key",
"noDataIconKey": "favourite",
"headerRightActions": [
{
"type": "search"
}
],
"onClickOpens": "link",
"nameAttribute": "objectName",
"objectPathKey": "pathNames",
"layouts": [
{
"type": "cards"
}
]
}
]
}
}
Example taken from the core package.
Nested properties
| Property | Description | Values | Mandatory |
|---|
key | Unique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey. | string | Yes |
name | Name of the asset, used as the default EN translation. | string | Yes |
template | Visual template of the page. Templates are built using different components, for options, see the Components Library. | json | Yes |
description | Description of the property. | string | No |
features | Array of page features. | array | No |
iconKey | Key of the icon used to visually represent the asset. Use predefined icons from Settings > Configuration > Icons, or define custom ones in the icons asset. | string | No |
locationKey | Page type and location of the page link. Must be defined together with parentKey. See locationKey values. | string | No |
orderNumber | Order of the page on a main dashboard and in the list of all pages. Must be a unique value. | integer | No |
parentKey | Key of the parent page. Must be defined together with locationKey. See parentKey values. | string | No |
state | Current status of the asset. Supported options are: active (asset is active and visible in the environment), inactive (asset is inactive and hidden, serves as a soft delete), hidden (asset is active but hidden in the environment). | string | No |
translations | Array of translation keys and their definitions that determine how the text is displayed in the UI for the specific asset. For more information, see Translations. | array | No |
url | URL address of the page. It must be unique for every dashboard/page. If no URL is provided, the name property will be used instead. | string | No |
locationKey values
| Value | Description |
|---|
dashboard | Page displayed in the top navigation bar or on the parent page. parentKey cannot be NULL for this type. |
embeddedApplication | Standalone full-screen page accessible only via /app/{url}. Not listed in the dashboard selection or on the homepage. Used with the [[slug]] component. |
homepage-tab | Page displayed on the Dawiso instance homepage as a tab. If there is only one page, no tabs are shown. |
top-menu | Page displayed in the top navigation bar and on the Dawiso instance homepage. Position is determined by orderNumber. |
parentKey values
parentKey | Displayed on | Supported locationKey |
|---|
"core#dashboard_dashboards" | Dashboards tab in the top navigation bar | dashboard |
| NULL | Dawiso instance homepage (shown as tabs if multiple dashboards exist) | homepage-tab, top-menu |