Add value parameter to AutoComplete component

This commit is contained in:
Daniel Garcia 2021-09-20 16:41:09 +02:00
parent 712f92d5f5
commit f9d6024d6a
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -21,9 +21,10 @@ export default function MCF_Autocomplete (props) {
return ( return (
<Autocomplete <Autocomplete
id={params.id} // string id={params.id} // string
value={params.value} // string value={params.value} // an option from params.options
style={{width: params.width}} // number style={{width: params.width}} // number
options={params.options} // options to select options={params.options} // options to select
defaultValue={params.defaultValue} // an option from params.options
getOptionLabel={option => option.key} getOptionLabel={option => option.key}
onChange={handleChange} onChange={handleChange}
renderInput={parameters => <TextField renderInput={parameters => <TextField