mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a class docstring to ListItem
This commit is contained in:
@@ -7,6 +7,13 @@ from textual.widget import Widget
|
||||
|
||||
|
||||
class ListItem(Widget, can_focus=False):
|
||||
"""A widget that is an item within a `ListView`.
|
||||
|
||||
A `ListItem` is designed for use within a
|
||||
[ListView][textual.widgets._list_view.ListView], please see `ListView`'s
|
||||
documentation for more details on use.
|
||||
"""
|
||||
|
||||
DEFAULT_CSS = """
|
||||
ListItem {
|
||||
color: $text;
|
||||
|
||||
Reference in New Issue
Block a user