Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Feb 7, 2025
1 parent df77f68 commit 3585dbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/guide/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Text in a widget may be marked up with links which perform an action when clicke
Links in markup use the following format:

```
"Click [@click='app.bell']Me[/]"
"Click [@click=app.bell]Me[/]"
```

The `@click` tag introduces a click handler, which runs the `app.bell` action.
Expand Down
7 changes: 4 additions & 3 deletions src/textual/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -4036,10 +4036,11 @@ async def batch(self) -> AsyncGenerator[None, None]:
yield

def render(self) -> RenderResult:
"""Get [content](./guide/content) for the widget.
"""Get [content](/guide/content) for the widget.
Implement this for custom widgets.
This method should return a string, a [Content][textual.content.Content] object, or a [Rich](https://github.com/Textualize/rich) renderable.
Implement this method in a subclass for custom widgets.
This method should return [markup](/guide/content#markup), a [Content][textual.content.Content] object, or a [Rich](https://github.com/Textualize/rich) renderable.
Example:
```python
Expand Down

0 comments on commit 3585dbd

Please sign in to comment.