Skip to content

Commit

Permalink
snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Feb 6, 2025
1 parent bda56ab commit 3716641
Show file tree
Hide file tree
Showing 23 changed files with 1,957 additions and 1,201 deletions.
6 changes: 3 additions & 3 deletions docs/guide/content.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Content

The *content* of widget (displayed within the widget's borders) is typically specified in a call to [`Static.update`][textual.widgets.static.Static.update] or returned from [`render()`][textual.widget.Widget.render] in the case of [custom widgets](./widgets.md#custom-widgets).
The *content* of widget (displayed within the widget's borders) is typically specified in a call to [`Static.update`][textual.widgets.Static.update] or returned from [`render()`][textual.widget.Widget.render] in the case of [custom widgets](./widgets.md#custom-widgets).

There are a few ways for you to specify this content.

- Text — either plain text, or [markup](#markup).
- Text — a string containing [markup](#markup).
- [Content](#content-class) objects — for more advanced control over output.
- Rich renderables — any object that may be printed with [Rich](https://rich.readthedocs.io/en/latest/).

Expand Down Expand Up @@ -397,7 +397,7 @@ You can experiment with this feature by entering a dictionary of variables in th

Here's what that looks like:

```{.textual path="docs/examples/guide/content/playground.py" lines=20 columns=100 type='hello [bold]$name[/bold]!\t{"name": "[magenta italic]Will"}\t']}
```{.textual path="docs/examples/guide/content/playground.py" lines=20 columns=110 type='hello [bold]$name[/bold]!\t{"name": "[magenta italic]Will"}\t']}
```

## Rich renderables
Expand Down
Loading

0 comments on commit 3716641

Please sign in to comment.