mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add width reference documentation for radio set
This commit is contained in:
37
docs/widgets/radioset.md
Normal file
37
docs/widgets/radioset.md
Normal 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)
|
||||
Reference in New Issue
Block a user