Closed joaquinwojcik closed 4 years ago
PING @apvarun
@joaquinwojcik @Tadaz Appreciate your pull requests. Both of you have PR's for similar feature.
My opinion: I prefer the API from #49 but also include offset between toasts like in #45 Would like to know your use cases too so that we can decide on one common way of adding offsets.
@apvarun any update on this?
@aconital Do you mind contributing your thoughts on which of the implementation is better suited for this use-case? #49 or #45
@apvarun I personally prefer #49 for offset.
PING @apvarun
I've updated the README. I thinks its ready to merge.
Version 1.9.0 contains your changes @joaquinwojcik https://www.npmjs.com/package/toastify-js/v/1.9.0
Add some basic support for offset as requested on #48
Usage:
Toast will be pushed 50px from right in x axis and 10px from top in y axis.
Example:
If
position
is equals toleft
, it will be pushed from left. Ifgravity
is equals tobottom
, it will be pushed from bottom.Example:
Also updated the docs.