I want to implement my own text input web component like:
<x-text autocomplete="{{ true }}"></x-text>
The thing is, when the user chooses an item from the autocompletion list, how can my web component fire an event? I'm looking for something like this:
<x-text autocomplete="{{ true }}" on-select="itemSelected()"></x-text>
Is there a way to accomplish this?