ngx-toastr icon indicating copy to clipboard operation
ngx-toastr copied to clipboard

closeButton click doesn't trigger onTap

Open benceHornyak opened this issue 5 years ago • 0 comments

Description

I think when the closeButton option is true and the user clicks on the close icon it should trigger the onTap event. Or maybe have a separate EventEmitter that only emits when the user clicks on the close icon.

Can I implement it so the closeButton click triggers the onTap emitter and also send you a pull reqest?

Example

    const foo: ActiveToast<any> = this.toastr.info('Text', 'Title');

    foo.onHidden.subscribe(() => console.log('onHidden'));
    foo.onTap.subscribe(() => console.log('onTap'));
    foo.onAction.subscribe(() => console.log('onAction'));

benceHornyak avatar Jan 23 '20 12:01 benceHornyak