Skip to main content

ChecklistInput

Checklist input widget for selecting multiple options from a list.

Signature

def ChecklistInput(
label: str,
options: List[AbstraOption],
key: str = None,
required: bool = True,
hint: str = None,
full_width: bool = False,
disabled: bool = False,
min: int = 0,
max: int = None,
errors: List[str] = None
)

Parameters

NameDescriptionTypeDefault
label (required)Text label displayed above the checklist.strNone
options (required)List of options to choose from, as AbstraOption objects.List[AbstraOption]None
keyIdentifier for the widget, defaults to label if not provided.strNone
requiredWhether at least one option must be selected before proceeding.boolTrue
hintHelp text displayed below the checklist.strNone
full_widthWhether the checklist should take up the full width of its container.boolFalse
disabledWhether the checklist is non-interactive.boolFalse
minMinimum number of options that must be selected.int0
maxMaximum number of options that can be selected.intNone
errorsPre-defined validation error messages to display.List[str]None