🗃️ Adds widget request timeout to schema and docs

This commit is contained in:
Alicia Sykes
2022-03-27 21:22:26 +01:00
parent 979a776b68
commit 6220f9b7f8
3 changed files with 23 additions and 0 deletions

View File

@@ -1289,6 +1289,7 @@ All Glance's based widgets require a `hostname`. All other parameters are option
**`apiVersion`** | `string` | _Optional_ | Specify an API version, defaults to V `3`. Note that support for older versions is limited
**`limit`** | `number` | _Optional_ | For widgets that show a time-series chart, optionally limit the number of data points returned. A higher number will show more historical results, but will take longer to load. A value between 300 - 800 is usually optimal
Note that if auth is configured, requests must be proxied with `useProxy: true`
##### Info
- **CORS**: 🟢 Enabled
- **Auth**: 🟠 Optional
@@ -1726,6 +1727,12 @@ Vary: Origin
---
### Setting Timeout
Default timeout is ½ a second. This can be overridden with the `timeout` attribute on a widget, specified as an integer in milliseconds.
---
### Widget Styling
Like elsewhere in Dashy, all colours can be easily modified with CSS variables.