File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
chartlets.js/packages/lib/src/plugins/mui Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ import * as React from "react" ;
12import MuiFormControl from "@mui/material/FormControl" ;
23import MuiInputLabel from "@mui/material/InputLabel" ;
34import MuiMenuItem from "@mui/material/MenuItem" ;
@@ -34,6 +35,8 @@ export function Select({
3435 multiple,
3536 onChange,
3637} : SelectProps ) {
38+ const [ personName , setPersonName ] = React . useState < string [ ] > ( [ ] ) ;
39+
3740 const handleChange = ( event : SelectChangeEvent ) => {
3841 if ( id ) {
3942 let newValue : string | number = event . target . value ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Component(ABC):
1919 name : str | None = None
2020 """HTML `name` attribute. Optional."""
2121
22- value : bool | int | float | str | None = None
22+ value : bool | int | float | str | list [ bool | int | float | str ] | None = None
2323 """HTML `value` attribute. Required for specific components."""
2424
2525 style : dict [str , Any ] | None = None
Original file line number Diff line number Diff line change @@ -24,10 +24,11 @@ def render_panel(
2424 )
2525 select = Select (
2626 id = "selected_variable_name" ,
27- value = var_name ,
27+ value = [ var_name ] ,
2828 label = "Variable" ,
2929 options = [(v , v ) for v in variable_names ],
3030 style = {"flexGrow" : 0 , "minWidth" : 120 },
31+ multiple = True ,
3132 tooltip = "Select the variable of the test dataset to be used" ,
3233 )
3334 control_group = Box (
You can’t perform that action at this time.
0 commit comments