tech-advantage / ngx-icon-picker

An Icon Picker Directive/Component for Angular 13+ which manages Font Awesome, Bootstrap Glyphicon, Font Awesome5 and Material.
MIT License
25 stars 33 forks source link

Delay between clicking and opening of popup, add open event? #34

Closed decay42 closed 1 year ago

decay42 commented 3 years ago

There is a delay between clicking the input and the opening of the popup window, probably because of needing to load/render the icons. Could you add an "afterOpen" event or something like that, which triggers once the popup is shown? That way one could implement a loading spinner as an indication of "something will happen soon".

HerbertBodner commented 3 years ago

This is exactly what I would need as well.

As an alternative, you might think of initializing the popup immediately, instead of initializing it when clicking on the input. (In that case you might want to add a switch to turn off that configuration, in case you have multiple controls on your page and initializing all of them would take a lot of resources and make the whole page non-interactive).

greg7859 commented 3 years ago

I have little time to devote to this development in September. I won't be able to do anything before October.

stanciupaul commented 3 years ago

@greg7859 Any update on this?

StanlyLife commented 3 years ago

Update?

greg7859 commented 1 year ago

I just publish a new release: 1.11.1

I added 3 outputs:

I modified an example to take in account the events and display an awaiting opening icon. For more details, see: