covalent
covalent copied to clipboard
feature: select with autocomplete
Feature Request
A material based select element with an autocomplete functionality
What is the motivation / use case for changing the behavior?
There are cases in which the number of elements in a select could be large or be lazily loaded depending on the user input. For cases like this, an autocomplete function to manipulate the displayed options would be nice.
Other information
Similar elements out there in the wild:
https://github.com/ng2-ui/auto-complete https://valor-software.com/ng2-select/
What features beyond <mat-autocomplete>
are you looking for?
I think material hasnt done this yet cause they were worried about a11y
.. since the idea they had was to add a mat-select-header
component that would put an input on top of the mat-option
list..
Having said that ive been doing some tinkering around this to make an input/autocomplete
work like a select.. i just need to abstract it a bit to turn it into a component and test it out
Linking for reference. https://github.com/Teradata/covalent/issues/140
It was closed in the hope that mat-autocomplete would address it.