2017-09-20 5 views

Antwort

4

auf Basis der Material UI Dokumentation Sie listStyle Eigenschaften durch die Optionen passieren können:

<ReferenceArrayInput label="Parts" source="partId" reference="parts" allowEmpty> 
    <AutocompleteInput optionText="name" 
     options={{ listStyle: { overflow: 'auto', maxHeight: 200}}} /> 
</ReferenceArrayInput> 

Je nach Implementierung Sie auch das gleiche Verhalten mit SelectManyInput haben könnte:

<ReferenceArrayInput label="Parts" source="partId" reference="parts" allowEmpty> 
    <SelectManyInput optionText="name" 
     options={{ listStyle: { overflow: 'auto', maxHeight: 200}}} /> 
</ReferenceArrayInput> 

-Material UI doc: http://www.material-ui.com/#/components/auto-complete Rest Admin doc: https://marmelab.com/admin-on-rest/Inputs.html#autocompleteinput

Etwas in der Art:

enter image description here

Verwandte Themen