# Custom widgets

With *Custom Widgets* you can create your own widgets tailored exactly to your needs. The advantage over preconfigured widgets is that in Custom Widgets &#x20;

## Basic principle

A Custom Widget consists of several modules. You can combine as many of these modules as you like into one widget. You can further customize the individual modules in detail.

In Fig. 1 you can see an example of a Custom Widget consisting of the following modules (from top to bottom):

* Analog Trend
* Heatmap
* Donut

<figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/E61anSE0ZsuZcOAj4EBQ/EB7B22ED-1352-44F5-9EB6-C53486537AA1.png" alt="" width="188"><figcaption><p>Fig. 1: A preview of a Custom Widget with 3 modules</p></figcaption></figure>

## Step by step: Creating a Custom Widget

### Step 1 – Creating a Custom Widget

Follow the steps to create an "empty" Custom Widget.

1. Make sure you are in the "Dashboards" menu item
2. Click on "Widgets" in the context bar\
   ▷ The widget selection opens
3. Click on Custom Widget
4. Enter a name
5. Select an icon. This icon will later appear in the widget title bar
6. Click on "Confirm"\
   ▷ The new widget has been created

### Step 2 – Customize the new widget

After the widget has been created in step 1, you can make the first adjustments.

<div data-full-width="true"><figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/uGY0GgnllqSdiAEwBcvo/E78E66A2-A811-4513-BC3D-AB642F164C39.png" alt=""><figcaption><p>Fig. 2:</p></figcaption></figure></div>

<table><thead><tr><th width="122.33333333333331"></th><th width="182"></th><th></th></tr></thead><tbody><tr><td><strong>[A]</strong></td><td>Back/Cancel</td><td>Return to the widget overview, <strong>without</strong> saving.</td></tr><tr><td><strong>[B]</strong></td><td>Name</td><td>You can adjust the name here afterward</td></tr><tr><td><strong>[C]</strong></td><td>Icon</td><td>You can adjust the icon here afterward</td></tr><tr><td><strong>[D]</strong></td><td>Save</td><td>Save entries</td></tr><tr><td><strong>[E]</strong></td><td>Preview</td><td>A preview of what the created widget will look like</td></tr><tr><td><strong>[F]</strong></td><td>Add module</td><td>Click here to add modules to the widget</td></tr><tr><td><strong>[G]</strong></td><td>Set test data</td><td>Click here to set test data. <br>Explained in more detail under <a href="#testdaten-einstellen">-> Set test data</a></td></tr><tr><td><strong>[H]</strong></td><td>Alarm data</td><td>If this box is checked, the widget will display the alarms of the asset defined under "Primary Asset". <br><br>The "Primary Asset" is specified when you have finished configuring the Custom Widget and add it to the dashboard. See X</td></tr></tbody></table>

### Step 3 – Add a module

<div data-full-width="true"><figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/resVAPIJM68kuOZmlTzS/753B9218-81BD-45FC-9726-F1E771448519.png" alt=""><figcaption><p>Image 3: The module selection</p></figcaption></figure></div>

1. Click on **\[F]**, to add the first module to the new widget. \
   ▷ The module selection (Fig. 3) appears
2. Move the mouse over a module to display a short description
3. Click on a module to add it to the Custom Widget\
   ▷ The **Preview** **\[E]** of the widget is updated with the new module.\
   ▷ The **Module options \[I]** (Fig. 4) open
4. Configure the module in the **Module options \[I]**&#x20;
5. Click the button **Save** **\[J]**, to save the module settings or click **\[K]**, to cancel.

{% hint style="info" %}
A detailed explanation of the configuration options for each module can be found in the chapter [-> Modules](https://docs.buildings.ability.abb/collection/english-v14/documentation/widgets/custom-widgets/modules)
{% endhint %}

<div data-full-width="true"><figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/vKhhnvG13froc5aCzG7e/1F4F8BFC-8755-46B8-AB27-92B0C9DC98F7.png" alt=""><figcaption><p>Fig. 4 – Module with module options</p></figcaption></figure></div>

{% hint style="warning" %}
Click **NOT** the upper Save button \[D] (see image 1)! \
\
Make sure to click the button **\[J]** for the respective module. Otherwise, the changes made to the module will be lost.
{% endhint %}

### Step 4 – Add and arrange further modules

1. Click on **\[F]**\
   ▷ The module selection (Image 3) opens.
2. Click on the module you want to add to the widget
3. Proceed as explained in step 3 to configure the new module.

## Rearrange modules

You can arrange modules within the Custom Widget as you like.

1. Click in the **Preview \[E]** on a module. \
   ▷ The module is outlined in black
2. Click on **\[L]**\
   ▷ The module is moved up
3. Click on **\[M]**\
   ▷ The module is moved down

## Delete modules

You can delete a module from the Custom Widget.

1. Click in the **Preview \[E]** on a module. \
   ▷ The module is outlined in black
2. Click on **\[N]**\
   ▷ The module is deleted

## Set test data

You can simulate what your new Custom Widget will look like when it has been filled with data.&#x20;

Use the function **Set test data** **\[G]**

1. Make sure you are in the "Dashboards" menu item
2. Click on "Widgets" in the context bar\
   ▷ The widget selection opens
3. Click on the Custom Widget for which you want to set test data
4. Click on **Set test data** **\[G]**\
   ▷ The "Test data" window appears (Fig. 5)
5. Make the desired settings
6. Click on **Continue \[S]**\
   ▷ You will see the simulated data in the **Preview** **\[E]**

{% hint style="info" %}
The simulated data only affects the preview of the Custom Widget.&#x20;

The simulated data is only intended to provide a better overview of what a finished Custom Widget will look like.

The simulated data has no effect on the Custom Widget after it has been created and saved.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/8edFFYq4Uemgh4taU9B4/377B309E-5B70-49A8-8F71-D40BB8A50104.png" alt=""><figcaption><p>Fig. 5 – Window "Test data"</p></figcaption></figure>

<table><thead><tr><th width="97.33333333333331"></th><th width="188"></th><th></th></tr></thead><tbody><tr><td><strong>[O]</strong></td><td>asset </td><td>Simulates the display of the title of the Primary Asset in the <strong>Title bar [T]</strong> (Fig. 6)</td></tr><tr><td><strong>[P]</strong></td><td>Alarm</td><td><p>Simulates the alarm level in the <strong>widget icon [U]</strong> or the <strong>Title bar [T]</strong> (Fig. 6)<br><br>Available values: </p><ul><li>0: No alarm </li><li>1: High alarm level / title bar [T] turns red</li><li>2: Medium alarm level / Yellow symbol in the widget icon [U]</li><li>3: Low alarm level / Green symbol in the widget icon [U]</li></ul></td></tr><tr><td><strong>[Q]</strong></td><td>Time period</td><td>Only effective for certain modules, e.g. trends.<br><br>Changes the scaling of trends; the same effect is caused when <strong>[V]</strong> is pressed. </td></tr><tr><td><strong>[R]</strong></td><td>Number of assets</td><td>Only effective for certain modules, e.g. donuts.<br><br>Simulates how the module changes when more assets are linked to it</td></tr><tr><td><strong>[S]</strong></td><td>Continue</td><td>Apply entries and close the "Test data" window</td></tr></tbody></table>

<figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/mzYb7OP6ZFo1zCAMMZYE/C6D0EF1E-4479-4472-A939-0FDE8C55E138.png" alt=""><figcaption><p>Fig. 6</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.buildings.ability.abb/collection/english-v14/documentation/widgets/custom-widgets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
