Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification 组件需要有“关闭时的回调函数”这种操作 #2458

Closed
victor-fa opened this issue Nov 15, 2018 · 6 comments · Fixed by #2952
Closed

Notification 组件需要有“关闭时的回调函数”这种操作 #2458

victor-fa opened this issue Nov 15, 2018 · 6 comments · Fixed by #2952

Comments

@victor-fa
Copy link

通知提醒框,十分需要一个关闭时的回调函数
手动关闭之后能告诉开发者提醒框目前最新状态,是否已关闭~
方便开发者进行下一步操作

如图所示:

image

可以模仿 element-angular 的组件 Notification 有个回调

如图所示:

image

@ng-zorro-bot
Copy link
Collaborator

Hello @victor-fa, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

@victor-fa
Copy link
Author

@ng-zorro-bot 这是个意见或建议~
我认为这种弹框十分需要有个回调,场景不仅是用于提醒,还可用于展示数据等……
所以这也是个很重要的问题了,望重视……

感谢您的反馈

@wzhudev wzhudev self-assigned this Nov 19, 2018
@smile2014
Copy link

smile2014 commented Nov 20, 2018

能否提供一个clearAll 关闭所有notify
类似https://akserg.github.io/ng2-webpack-demo/#/toasty

@wzhudev
Copy link
Member

wzhudev commented Dec 10, 2018

能否提供一个clearAll 关闭所有notify
类似https://akserg.github.io/ng2-webpack-demo/#/toasty

你可以直接调用 NotificationService.remove(), 不带参数.

@smile2014
Copy link

@wendzhue 谢谢了,

@wzhudev
Copy link
Member

wzhudev commented Feb 22, 2019

I've started working on this... Events on message components would be added to.

wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Feb 22, 2019
wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Feb 26, 2019
vthinkxie pushed a commit that referenced this issue Feb 26, 2019
* feat(module:message, notification): add close event

close #2458

* docs: fix Chinese doc not translated

* fix: remove redundant declaration
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
* feat(module:message, notification): add close event

close NG-ZORRO#2458

* docs: fix Chinese doc not translated

* fix: remove redundant declaration
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
* feat(module:message, notification): add close event

close NG-ZORRO#2458

* docs: fix Chinese doc not translated

* fix: remove redundant declaration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants