Add all messages to widget references.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-26 11:53:51 +00:00
parent fb4f804dff
commit b37517c400
7 changed files with 14 additions and 123 deletions

View File

@@ -32,20 +32,6 @@ The example below shows checkboxes in various states.
| ------- | ------ | ------- | ---------------------------------- |
| `value` | `bool` | `False` | The default value of the checkbox. |
## Messages
### Pressed
The `Checkbox.Changed` message is sent when the checkbox is toggled.
- [x] Bubbles
#### Attributes
| attribute | type | purpose |
| --------- | ------ | ------------------------------ |
| `value` | `bool` | The new value of the checkbox. |
## Bindings
The checkbox widget defines directly the following bindings:
@@ -64,6 +50,10 @@ The checkbox widget provides the following component classes:
show_root_heading: false
show_root_toc_entry: false
## Messages
### ::: textual.widgets.Checkbox.Changed
## Additional Notes
- To remove the spacing around a checkbox, set `border: none;` and `padding: 0;`.