MultipleChoiceInput
Multiple choice input widget for selecting a single option from a set of radio buttons.
Signature
def MultipleChoiceInput(
label: str,
options: List[AbstraOption],
key: str = None,
required: bool = True,
hint: str = None,
full_width: bool = False,
disabled: bool = False,
multiple: bool = False,
min: int = None,
max: int = None,
errors: Union[List[str], str] = None
)
Parameters
Name | Description | Type | Default |
---|---|---|---|
label (required) | Text label displayed above the options. | str | None |
options (required) | List of options to choose from, as AbstraOption objects. | List[AbstraOption] | None |
key | Identifier for the widget, defaults to label if not provided. | str | None |
required | Whether an option must be selected before proceeding. | bool | True |
hint | Help text displayed below the options. | str | None |
full_width | Whether the widget should take up the full width of its container. | bool | False |
disabled | Whether the widget is non-interactive. | bool | False |
multiple | Whether multiple options can be selected. | bool | False |
min | Minimum number of options that can be selected. | int | None |
max | Maximum number of options that can be selected. | int | None |
errors | Pre-defined validation error messages to display. | Union[List[str], str] | None |