material icon indicating copy to clipboard operation
material copied to clipboard

md-autocomplete: support custom buttons within input

Open dgavigan opened this issue 11 years ago • 2 comments

Understand this would be very low on priority, maybe something for a PR!

I am making a maps application, and using the autocomplete very similar to the implementation on google maps as a search.

It would be great if I could embed a couple of buttons in the actual search, similar to google maps:

Google Maps

screen shot 2015-10-12 at 6 57 07 pm ### My App screen shot 2015-10-12 at 7 06 50 pm

Allowing the search to have configurable buttons could also resolve similar request, like #4841

dgavigan avatar Oct 13 '15 00:10 dgavigan

+1

Maybe even custom button in the footer of results dropdown, user should be able to pass button label and function that should be trigger on ng-click

smilovanovic avatar Oct 14 '15 10:10 smilovanovic

for anyone looking for a similar solution, I did a workaround by altering a little css of the border lines and wrapping it in a whiteframe.

screen shot 2016-05-04 at 10 17 23 am screen shot 2016-05-04 at 10 17 36 am

dgavigan avatar May 04 '16 15:05 dgavigan