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

@@ -35,33 +35,9 @@ The example below shows an app with a simple `ListView`.
## Messages
### Highlighted
### ::: textual.widgets.ListView.Highlighted
The `ListView.Highlighted` message is emitted when the highlight changes.
This happens when you use the arrow keys on your keyboard and when you
click on a list item.
- [x] Bubbles
#### Attributes
| attribute | type | purpose |
| --------- | ---------- | ------------------------------ |
| `item` | `ListItem` | The item that was highlighted. |
### Selected
The `ListView.Selected` message is emitted when a list item is selected.
You can select a list item by pressing ++enter++ while it is highlighted,
or by clicking on it.
- [x] Bubbles
#### Attributes
| attribute | type | purpose |
| --------- | ---------- | --------------------------- |
| `item` | `ListItem` | The item that was selected. |
### ::: textual.widgets.ListView.Selected
## Bindings