You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/widgets/header.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
A simple header widget which docks itself to the top of the parent container.
4
4
5
+
!!! note
6
+
7
+
The application title which is shown in the header is taken from the [`title`][textual.app.App.title] and [`sub_title`][textual.app.App.sub_title] of the application.
8
+
5
9
-[ ] Focusable
6
10
-[ ] Container
7
11
@@ -20,6 +24,19 @@ The example below shows an app with a `Header`.
20
24
--8<-- "docs/examples/widgets/header.py"
21
25
```
22
26
27
+
This example shows how to set the text in the `Header` using `App.title` and `App.sub_title`:
0 commit comments