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

Can we close or remove the notification ? #136

Open
Kalmuraee opened this issue Oct 11, 2017 · 1 comment
Open

Can we close or remove the notification ? #136

Kalmuraee opened this issue Oct 11, 2017 · 1 comment

Comments

@Kalmuraee
Copy link

Kalmuraee commented Oct 11, 2017

Hi

Do we have a built in function to close or remove the current notification ?
I'll post my findings here if I have found any solution .

@Kalmuraee Kalmuraee changed the title Can we hide or remove the notification ? Can we close or remove the notification ? Oct 11, 2017
@Kalmuraee
Copy link
Author

I've managed to trigger the conditional closing through adding a condition on "closeEvent" function

if(e.srcElement.id === "actionTaken"){ // The rest of closing function is here }
and assigning id="actionTaken" to the buttons where you want to close.

Make sure that closeOnClick is true

If there's a better way , please let me know.
Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant