caroso1222 / notyf

👻 A minimalistic, responsive, vanilla JavaScript library to show toast notifications.
https://carlosroso.com/notyf/
MIT License
2.66k stars 197 forks source link

Is there a way to set position per call ? #129

Open medmin opened 1 year ago

medmin commented 1 year ago

for now, position is set during initiation of Notyf instance

is there a way to override it during a call ?


const notyf = new Notyf({

   position: { x: 'center', y : 'top'}

})

// can we do this ? Or, would you please add this feature ? 
notyf.error({
   message: "Error!!",
   position: { x: 'center', y : 'bottom'}
})
vrman commented 1 year ago

did you find any solution for this ?