RadioGroup
Last updated
Last updated
RadioGroup
widget in Supervisely is a user interface element that allows users to create a group of mutually exclusive options that can be selected via radio buttons. With the RadioGroup widget, users can define a set of options, each with a corresponding radio button, and only one option (RadioGroup.Item
) can be selected at a time. Overall, RadioGroup
widget is a valuable tool for simplifying user interactions and improving the usability of Supervisely apps.
Parameters | Type | Description |
---|---|---|
|
| List of |
|
|
|
|
|
|
|
| Gap between |
|
| ID of the widget |
Determine list of RadioGroup
items.
type: List[RadioGroup.Item]
Determine RadioGroup
size.
type: Literal["large", "small", "mini", None]
default value: None
Determine RadioGroup
items direction.
type: Literal["vertical", "horizontal"]
default value: horizontal
Determine gap between RadioGroup
items.
type: int
default value: 10
ID of the widget.
type: str
default value: None
Attributes and Methods | Description |
---|---|
| Return selected |
| Set given list of |
| Set given value by value of |
| Decorator function is handled when input |
You can find this example in our Github repository:
ui-widgets-demos/controls/003_radio_group/src/main.py
RadioGroup.Item
to use in RadioGroup
RadioGroup
widgetOneOf
widget to have ability to choose RadioGroup.Item
contentPrepare a layout for app using Card
widget with the content
parameter.
Create an app object with layout parameter.