Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/api/widget.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
::: textual.widget
options:
filters:
- "!^_"
- "^__init__$"
9 changes: 9 additions & 0 deletions mkdocs-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ plugins:
- "!^_"
- "^__init__$"
- "!^can_replace$"
# Hide some methods that Widget subclasses implement but that we don't want
# to be shown in the docs.
# This is then overridden in widget.md so that it shows in the base class.
- "!^compose$"
- "!^render$"
- "!^render_line$"
- "!^render_lines$"
- "!^get_content_width$"
- "!^get_content_height$"
watch:
- mkdocs-common.yml
- mkdocs-nav.yml
Expand Down
2 changes: 1 addition & 1 deletion src/textual/widgets/_placeholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(
while next(self._variants_cycle) != self.variant:
pass

def on_mount(self) -> None:
def _on_mount(self) -> None:
"""Set the color for this placeholder."""
colors = Placeholder._COLORS.setdefault(
self.app, cycle(_PLACEHOLDER_BACKGROUND_COLORS)
Expand Down