Add width reference documentation for radio set

This commit is contained in:
Dave Pearson
2023-02-23 15:31:32 +00:00
parent a821b2f8f6
commit 316faf9e45
2 changed files with 38 additions and 0 deletions

37
docs/widgets/radioset.md Normal file
View File

@@ -0,0 +1,37 @@
# RadioSet
A container widget that groups [`RadioButton`](./radiobutton.md)s together.
- [ ] Focusable
- [x] Container
## Example
The example below shows two radio sets, one built using a collection of
[radio buttons](./radiobutton.md), the other a collection of simple strings.
=== "Output"
```{.textual path="docs/examples/widgets/radio_set.py"}
```
=== "radio_set.py"
```python
--8<-- "docs/examples/widgets/radio_set.py"
```
=== "radio_set.css"
```sass
--8<-- "docs/examples/widgets/radio_set.css"
```
## Messages
### ::: textual.widgets.RadioSet.Changed
## See Also
- [RadioSet](../api/radioset.md) code reference
- [RadioButton](./radiobutton.md)

View File

@@ -135,6 +135,7 @@ nav:
- "widgets/markdown.md" - "widgets/markdown.md"
- "widgets/placeholder.md" - "widgets/placeholder.md"
- "widgets/radiobutton.md" - "widgets/radiobutton.md"
- "widgets/radioset.md"
- "widgets/static.md" - "widgets/static.md"
- "widgets/switch.md" - "widgets/switch.md"
- "widgets/text_log.md" - "widgets/text_log.md"