-
Notifications
You must be signed in to change notification settings - Fork 514
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
Anyone use this with rails flash? #27
Labels
Comments
I am trying to use it
Right now I am trying to figure out why the custom stack is not working |
So finally I write this: window.App ||= {}
window.App.Notifier ||=
## Internal Stacks for PNofify
stack_topleft: {"dir1": "down", "dir2": "right", "push": "top"}
## Functions for displaying flashes
showNotice: (message) ->
$.pnotify
type: 'notice'
text: message
nonblock: true, # So that user can see through it on mouse hover
nonblock_opacity: 0.2
addclass: "stack-topleft"
stack: @stack_topleft Then I either call it from somewhere else |
Closed
I've added a wiki that suggests how rails Here's the link: Rails flash integration with PNotify |
How can you add custom params like title or icon through flash message? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not an issue really but I'd appreciate if this was left open to give someone the chance to suggest how pnotify might be used with rails messages.
Anyone out there using pnotify with rails flash that can suggest how to make it work?
The text was updated successfully, but these errors were encountered: