Change icon of ion-searchbar and trigger event when click the icon

I have a ion-searchbar and it is working to filter a list, now I need to give the option for the user to select the type of search they want to do, select from a list.

How can I change the icon from search to filter and enable click on event?

Enabling the event, I can open a list to user change the search type.

image

To change the icon I used ion-searchbar search-icon=“filter-outline”>

This post helped me to solve the click and touch event → Ionic search bar search icon clicked - #8 by mcroker