mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
docs: Fix some typo (#2216)
This commit is contained in:
@@ -32,6 +32,6 @@ Some rules may clamp the values between `0%` and `100%`.
|
||||
# Integer followed by %
|
||||
widget.styles.color = "red 70%"
|
||||
|
||||
# The number can be negative/decimal, althought that may not make sense
|
||||
# The number can be negative/decimal, although that may not make sense
|
||||
widget.styles.offset = ("-30%", "12.5%")
|
||||
```
|
||||
|
||||
@@ -116,7 +116,7 @@ The `state` attribute will contain one of the following values:
|
||||
| ERROR | The worker raised an exception, and `worker.error` will contain the exception. |
|
||||
| SUCCESS | The worker completed successful, and `worker.result` will contain the return value. |
|
||||
|
||||
Wokers start with a `PENDING` state, then go to `RUNNING`. From there, they will go to `CANCELLED`, `ERROR` or `SUCCESS`.
|
||||
Workers start with a `PENDING` state, then go to `RUNNING`. From there, they will go to `CANCELLED`, `ERROR` or `SUCCESS`.
|
||||
|
||||
<div class="excalidraw">
|
||||
--8<-- "docs/images/workers/lifetime.excalidraw.svg"
|
||||
|
||||
@@ -30,7 +30,7 @@ between the different views.
|
||||
1. A `Horizontal` to hold the buttons, each with a unique ID.
|
||||
2. This button will select the `DataTable` in the `ContentSwitcher`.
|
||||
3. This button will select the `Markdown` in the `ContentSwitcher`.
|
||||
4. Note that the intial visible content is set by its ID, see below.
|
||||
4. Note that the initial visible content is set by its ID, see below.
|
||||
5. When a button is pressed, its ID is used to switch to a different widget in the `ContentSwitcher`. Remember that IDs are unique within parent, so the buttons and the widgets in the `ContentSwitcher` can share IDs.
|
||||
|
||||
=== "content_switcher.css"
|
||||
|
||||
Reference in New Issue
Block a user