Files
textual/docs/widgets/_template.md
Rodrigo Girão Serrão d787f61090 State version of widget addition in docs. (#2144)
* State version of widget addition in docs.

Related issues: #2133

* Fix ListX version info.

* Retroactively update changelog.
2023-03-27 22:32:18 +01:00

984 B

Widget

!!! tip "Added in version x.y.z"

Widget description.

  • Focusable
  • Container

Example

Example app showing the widget:

=== "Output"

```{.textual path="docs/examples/widgets/checkbox.py"}
```

=== "checkbox.py"

```python
--8<-- "docs/examples/widgets/checkbox.py"
```

=== "checkbox.css"

```sass
--8<-- "docs/examples/widgets/checkbox.css"
```

Reactive attributes

Bindings

The WIDGET widget defines the following bindings:

::: textual.widgets.WIDGET.BINDINGS options: show_root_heading: false show_root_toc_entry: false

Component classes

The WIDGET widget provides the following component classes:

::: textual.widget.WIDGET.COMPONENT_CLASSES options: show_root_heading: false show_root_toc_entry: false

Additional notes

  • Did you know this?
  • Another pro tip.

See also

  • WIDGET code reference.
  • Another related API.
  • Something else useful.