Files
textual/docs/widgets/loading_indicator.md
Rodrigo Girão Serrão d787f61090 State version of widget addition in docs. (#2144)
* State version of widget addition in docs.

Related issues: #2133

* Fix ListX version info.

* Retroactively update changelog.
2023-03-27 22:32:18 +01:00

597 B

LoadingIndicator

!!! tip "Added in version 0.15.0"

Displays pulsating dots to indicate when data is being loaded.

  • Focusable
  • Container

You can set the color of the loading indicator by setting its color style.

Here's how you would do that with CSS:

LoadingIndicator {
    color: red;
}

=== "Output"

```{.textual path="docs/examples/widgets/loading_indicator.py"}
```

=== "loading_indicator.py"

```python
--8<-- "docs/examples/widgets/loading_indicator.py"
```

See Also