kadoshms / ionic2-autocomplete

Ionic 2 autocomplete component
MIT License
149 stars 108 forks source link

Use custom function for 'ionClear' event #143

Open Hermiona opened 6 years ago

Hermiona commented 6 years ago

I need to use my own custom function when 'ionClear' event emits. How can I do that?

kadoshms commented 6 years ago

Currently there's no support for that, I'll mark it as a feature request.

renanmoraes commented 6 years ago

Any result of this option? It would also be good for me. I have already made the change in my project because it is very simple to implement. But it did not work because the file is not loading, I'm not sure how to make changes to a plugin and install it again in my project, is there somewhere to teach how to do it?

kadoshms commented 6 years ago

@renanmoraes Hey, you can simply fork the repo and clone the fork to your local workspace. After your'e done with the changes, you can either push them and make a pull request to the main project, and then I will merge when I can (it could take some time), or you can run the build script (npm run build), then a dist folder will be created. Now you have two options - publish it to npm, or to commit this dist file to your repo, push it, and then use your repository as the dependency in the project you use it.

I'm sorry for not being able to maintain the project, hopefully I will be in the next month.