DropdownInput
Dropdown select widget allowing selection from predefined options.
Signature
def DropdownInput(
label: str,
options: List[AbstraOption],
key: str = None,
required: bool = True,
hint: str = None,
placeholder: str = '',
full_width: bool = False,
disabled: bool = False,
multiple: bool = False,
min: int = None,
max: int = None,
errors: Union[List[object], object] = None
)
Parameters
Name | Description | Type | Default |
---|---|---|---|
label (required) | Text label displayed above the dropdown. | 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 a selection is required before proceeding. | bool | True |
hint | Help text displayed below the dropdown. | str | None |
placeholder | Text shown when no option is selected. | str | '' |
full_width | Whether the dropdown should take up the full width of its container. | bool | False |
disabled | Whether the dropdown is non-interactive. | bool | False |
multiple | Whether multiple options can be selected. | bool | False |
min | Minimum number of selections required when multiple=True. | int | None |
max | Maximum number of selections allowed when multiple=True. | int | None |
errors | Pre-defined validation error messages to display. | Union[List[object], object] | None |