Hi,
Thank you for making developer life easy.
While using AutoComplete I noticed that we have some hardcoded value when we hover on an open list button like "Open popup", "Close popup", "Clear". the component should accept props for these values.
@VipinJoshi I agree, thank you for the report. Do you have a specific API to propose? I'm not aware of a similar case in the repository. Maybe a titles object prop?
@oliviertassinari yeah something like
titles ={openPopup:"your message", closePopup:"",clearPopup:"
" }
IMHO, I think it would be better to create props like openPopupTitle and closePopupTitle. This way we can set default values when destructuring.
@m4theushw ~The advantage of the single prop is that it prevents default values. Should we assume that the main use case is internationalization? In which case, by order of preference 1. the right wording > 2. no wording > 3. wording in a different language 馃?~
@oliviertassinari Thinking this way you're right. Is weird to show a title in a different language. My point in creating multiple props was to not create another interface in Autocomplete.d.ts to just enforce the shape of the titles prop. Now I agree with the titles approach.