File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -586,6 +586,7 @@ def get_choice_input(
586
586
label : str | None = None ,
587
587
help_str : str = None ,
588
588
options : list [dict ] | None = None ,
589
+ clearable : bool = False ,
589
590
** kwargs ,
590
591
):
591
592
"""
@@ -601,6 +602,7 @@ def get_choice_input(
601
602
`state` if you want to set defaults for multiple inputs from a single dictionary.
602
603
:param help_str: Text for a tooltip when hovering over label.
603
604
:param options: Options to choose from, as per dcc.Dropdown
605
+ :param clearable: If True, will allow Dropdown to be cleared after a selection is made.
604
606
:return: a Dash layout
605
607
"""
606
608
@@ -611,7 +613,7 @@ def get_choice_input(
611
613
id = self .id (kwarg_label , is_kwarg = True , hint = "literal" ),
612
614
options = options if options else [],
613
615
value = default ,
614
- isClearable = False ,
616
+ isClearable = clearable ,
615
617
arbitraryProps = {** kwargs },
616
618
)
617
619
You can’t perform that action at this time.
0 commit comments