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

disable close button for sticky #21

Closed
programming-kid opened this issue Sep 25, 2015 · 3 comments
Closed

disable close button for sticky #21

programming-kid opened this issue Sep 25, 2015 · 3 comments

Comments

@programming-kid
Copy link

i use ng-notify in all my projects its clean n simple , just the way it should be , there is just one minor aesthetic thing which bothers me is, there is a close button during sticky, i agree its useful in many situation but sometime there are instance where it feels more right not to have it , where you would like to programmatically dismiss it after certain events occurred.

I wish it could be included in config

thanks

@maksad
Copy link

maksad commented Nov 11, 2015

+1

@matowens
Copy link
Owner

Hey guys, I've added a param called button to the config. By default it's set to true, but if the message is sticky and you'd like to prevent the button from appearing, you can set button to false. Eg:

ngNotify.set('This is sticky without a button.', {
    sticky: true,
    button: false
});

Thanks for the feedback, it's much appreciated. Hope this helps ya out!

@programming-kid
Copy link
Author

that's great @matowens thanks man 👍

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

3 participants