mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a note about SelctionToggled vs SelectedChanged
This commit is contained in:
@@ -183,6 +183,14 @@ class SelectionList(Generic[SelectionType], OptionList):
|
|||||||
|
|
||||||
Can be handled using `on_selection_list_selection_toggled` in a subclass of
|
Can be handled using `on_selection_list_selection_toggled` in a subclass of
|
||||||
`SelectionList` or in a parent node in the DOM.
|
`SelectionList` or in a parent node in the DOM.
|
||||||
|
|
||||||
|
Note:
|
||||||
|
This message is only sent if the selection is toggled by user
|
||||||
|
interaction. See
|
||||||
|
[`SelectedChanged`][textual.widgets.SelectionList.SelectedChanged]
|
||||||
|
for a message sent when any change (selected or deselected,
|
||||||
|
either by user interaction or by API calls) is made to the
|
||||||
|
selected values.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|||||||
Reference in New Issue
Block a user