Skip to content

Commit

Permalink
Merge pull request #3904 from Textualize/listviewindex-doc
Browse files Browse the repository at this point in the history
Document ListView.index.
  • Loading branch information
rodrigogiraoserrao authored Dec 19, 2023
2 parents 7c0fe10 + aa87295 commit 373a319
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textual/widgets/_list_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class ListView(VerticalScroll, can_focus=True, can_focus_children=False):
"""

index = reactive[Optional[int]](0, always_update=True)
"""The index of the currently highlighted item."""

class Highlighted(Message):
"""Posted when the highlighted item changes.
Expand Down

0 comments on commit 373a319

Please sign in to comment.