notifyjs icon indicating copy to clipboard operation
notifyjs copied to clipboard

Position/GlobalPosition/ElementPosition not documented on website.

Open EvanCarroll opened this issue 10 years ago • 3 comments

"position" is not documented in the list of "Options" on http://notifyjs.com/

And,

elementPosition: 'bottom left',
globalPosition: 'top right',

Are in the documentation for "Options" but there are no examples of the two. In my own experience this works,

$.notify('hello', {position:"top center"})

Even more interesting, the code

$.notify('hello', {globalPosition:"top", position:"center"})

Does not work.. and returns

notify.js:409 Uncaught Must be one of [t,b,l,r]

This also does not work,

$.notify('hello', {globalPosition:"top", position:"center"})

I'm not sure why that triggers when there is a position, or why "c" isn't provided in that error message [t,b,l,r]. And, lastly,

$.notify('hello', {position:"t c"})

Works, but isn't documented anywhere..

EvanCarroll avatar Sep 16 '15 20:09 EvanCarroll

Indeed it is missing, those ones are the defaults for each

  • global: $.(msg, opts)
  • element: $(selector).notify(msg, opts)

and so then opts.position overrides the default for each

jpillora avatar Sep 17 '15 00:09 jpillora

Hey @EvanCarroll is this https://notifyjs.com/#position more informative?

jpillora avatar Dec 05 '15 13:12 jpillora

hi, I cannot change the position of the notification using : <script>$.notify("HI", "Warning", {autoHideDelay: false, position: "top center"});</script> Any idea ?

App-Teck avatar May 14 '19 23:05 App-Teck