Today I was trying to write some new examples of customizing the autocomplete element, and wanted to provide examples that slightly modified either the string or (especially) row templates.
This turns out to be pretty hard, because the default templates are not written in plain HTML, as a custom template would be, but instead directly in a React component.
For the row template, I settled on the following HTML, which is probably close but not quite right:
Today I was trying to write some new examples of customizing the autocomplete element, and wanted to provide examples that slightly modified either the string or (especially) row templates.
This turns out to be pretty hard, because the default templates are not written in plain HTML, as a custom template would be, but instead directly in a React component.
For the row template, I settled on the following HTML, which is probably close but not quite right:
If its not too difficult, we might want to provide a good starting point for customization in our docs.