mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a docstring to HeaderTitle.render
This commit is contained in:
@@ -94,6 +94,11 @@ class HeaderTitle(Widget):
|
||||
"""The sub-title text."""
|
||||
|
||||
def render(self) -> Text:
|
||||
"""Render the title and sub-title.
|
||||
|
||||
Returns:
|
||||
The value to render.
|
||||
"""
|
||||
text = Text(self.text, no_wrap=True, overflow="ellipsis")
|
||||
if self.sub_text:
|
||||
text.append(" — ")
|
||||
|
||||
Reference in New Issue
Block a user