Skip to content

Commit

Permalink
Document ListView.index.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigogiraoserrao committed Dec 19, 2023
1 parent 1c8dc5d commit aa87295
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 aa87295

Please sign in to comment.