Dashboards¶
Warning
Dashboards in their current form are a proof-of-concept (POC) implementation.
Not all edge-cases are covered and the configuration is not particularly beginner-friendly.
Make sure you are well-familiar with the Open Data Dashboard before configuring.
Dashboards can be used to display multiple resources related to a single topic on one page. Additionally, the homepage is configured this way.
Homepage¶
The homepage is configured as a dashboard with the reserved id homepage. It must always be present in the configuration.
The available configuration options are identical to those of a regular dashboard.
Configurations¶
| Parameter | Description | Type |
|---|---|---|
id |
The unique dashboard id. | Required |
name |
The dashboard name. | Required |
description |
The dashboard description. | Optional |
icon |
The dashboard icon name. | Optional |
Example
The following example is a list of all available dashboards configurations:
dashboards:
- id: string
name: string
description: string
icon: string
contents: [<content-configuration>] # (1)!
- The contents of the dashboard.
Arranging a dashboard¶
Positioning¶
The positioning of contents on a dashboard is achieved through the use of nested arrays. Internally, it is handled by the Bootstrap 5 grid system.
The first level of the contents array defines the rows. The second level of the contents array contains the elements. In the example below, two rows are created where their contents fill the entire row:
To position an element within the same row but below each other, an optional third level of the array can be used. In the example below, a single row is created. There, the first content takes up all vertical space of the row while the second and third contents share the vertical space between them:
Example
Recommendation: Do not put more than three content elements next to each other horizontally.
Note
For complex examples, refer to the configuration in the GitHub repository.
Sizing¶
Most content types expose a size property which controls the height of an element. Allowed values are L, M, S and XS.
By default, M will be used.
Contents¶
Optionally, specify the contents of a dashboard. If omitted, the dashboard will be empty.
There are six types of content available:
Resource¶
Content of type RESOURCE allows displaying resources available in the application on a dashboard. See resources for configuration reference.
| Parameter | Description | Type | Default |
|---|---|---|---|
resourceId |
The id of the displayed resource. | Required |
Example
The following example is a list of all available configurations for contents of type RESOURCE:
External¶
Content of type EXTERNAL allows embedding content that otherwise is not available in the application, i.e. websites or PDFs.
| Parameter | Description | Type | Default |
|---|---|---|---|
name |
The content name. | Required | |
source |
The content source URL. | Required |
Example
The following example is a list of all available configurations for contents of type EXTERNAL:
- The content size. See sizing.
Internal Links¶
Content of type LINK_INTERNAL allows linking to dashboards, categories and resources that are available in the application.
| Parameter | Description | Type | Default |
|---|---|---|---|
uniqueIdentifier |
A unique identifier for the linked content. | Required | |
kind |
The type of the linked content. | Required |
Example
The following example is a list of all available configurations for contents of type LINK_INTERNAL:
External Links¶
Content of type LINK_EXTERNAL allows linking to content which is otherwise not available in the application.
| Parameter | Description | Type | Default |
|---|---|---|---|
target |
The link target URL. | Required | |
text |
The link text. | Required |
Example
The following example is a list of all available configurations for contents of type LINK_EXTERNAL:
Text¶
Content of type TEXT allows displaying standalone text on a dashboard.
| Parameter | Description | Type | Default |
|---|---|---|---|
header |
The header. | Required | |
body |
The body. | Optional |
Example
The following example is a list of all available configurations for contents of type TEXT:
- The content size. See sizing.
Text Carousel¶
Content of type TEXT_CAROUSEL allows displaying multiple text nodes in a carousel format.
Example
The following example is a list of all available configurations for contents of type TEXT_CAROUSEL:
Contents Configurations¶
Overrides¶
Contents that display resources available in the application or link to them (types RESOURCE and LINK_INTERNAL)
are able to override some of the underlying resource's properties.