> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/setbackgroundcolor.md).

# setBackgroundColor

Sets the background color of a control.

### Parameters

1. controlId
2. colorName - use one of these: "default", "primary", "secondary", "success", "danger", "warning"

### Example Usages

*Set to warning*

```javascript
   brixxApi.setBackgroundColor("myControl", "warning");
```

*Set to normal*

```javascript
   brixxApi.setBackgroundColor("myControl", "default");
   brixxApi.setBackgroundColor("myControl"); //"default" is "default" ;)
```
