I want to implement my own text input web component like:

```dart
<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:

```dart
<x-text autocomplete="{{ true }}" on-select="itemSelected()"></x-text>

```

Is there a way to accomplish this?