For my app I’d wanted to use the HTML5 datalist feature to get autofill from a specified list for text boxes. I started with a Custom HTML component and worked with the Javascript to Python bridge until I got something that I’m pretty happy with.
This isn’t data aware, you just give it a list of items that can be used for suggestions. The user isn’t limited to using one of those suggestion (use a combo box if you want that).
It will trigger change, pressed_enter, and selected_item events only, because those are the ones I care about right now. You can look at the Javascript to see how to propagate events back to Python.
The selected_item event is custom to this one, it means the user selected one of the items from the list, or they moved the focus away from the input box.
The visible property shows and hides the input box appropriately.
Hopefully this helps someone with similar needs to mine.
https://anvil.works/ide#clone:6RED3CWBB37ICDKS=AO6WXZFBBUCUBXV7ITWKVHY2
Disclaimer: I’m not a Javascript programmer, so there may very well be better ways to accomplish what I’m doing in Javascript.