mui-places-autocomplete icon indicating copy to clipboard operation
mui-places-autocomplete copied to clipboard

Manipulate suggestion rendering?

Open charliedotau opened this issue 7 years ago • 1 comments

hi there @Giners

Is there a way to manipulate the suggestion text? For example as is, the component might return a list of suggestions like so town name A, Victoria, Australia town name B, Victoria, Australia town name C, Victoria, Australia

Whereas for brevity I'd prefer town name A, VIC town name B, VIC

I'm thinking of a callback where, I could manipulate how the result returned from the Google API, is represented as a string.

I don't see a way to do that? As I understand createAutocompleteRequest is about controlling what Google returns, rather than how the component displays it.

Not showstopper but a nice to have. Thank you

charliedotau avatar Apr 06 '18 07:04 charliedotau

Hey @charliedotau

Today there isn't currently a way to control what is rendered for the text of any suggestions that were returned from Google. But that doesn't mean we can't look into adding that functionality. :smile:

Giners avatar Apr 06 '18 13:04 Giners