covalent icon indicating copy to clipboard operation
covalent copied to clipboard

feature: select with autocomplete

Open jotatoledo opened this issue 7 years ago • 3 comments

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/

jotatoledo avatar Dec 04 '17 17:12 jotatoledo

What features beyond <mat-autocomplete> are you looking for?

aciccarello avatar Dec 04 '17 17:12 aciccarello

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

emoralesb05 avatar Dec 04 '17 18:12 emoralesb05

Linking for reference. https://github.com/Teradata/covalent/issues/140

It was closed in the hope that mat-autocomplete would address it.

asaph26 avatar Dec 06 '17 14:12 asaph26