# 6.2	Changing the panel background colour

A UDI can use UDI.setBackground() to change the background colour of its panel, typically as a way of notifying the user of an alert condition. For example:

```
// On some condition which evaluates as an alert…
UDI.setBackground("red");
```

The parameter for UDI.setBackground() can be any valid CSS background colour or style; it is directly setting the style.background of the HTML element which contains the indicator.

&#x20;

To remove a background, and revert to the app’s default, you simply pass an empty string:

```
// When the alert is cleared…
UDI.setBackground("");
```


---

# 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://sway-technologies.gitbook.io/sway-charts-pro-scripts-documentation/sway-charts-pro-user-defined-indicators/notifying-the-user/6.2-changing-the-panel-background-colour.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.
