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

Want 'prepend' option #37

Open
ft-harai opened this issue Apr 5, 2018 · 0 comments
Open

Want 'prepend' option #37

ft-harai opened this issue Apr 5, 2018 · 0 comments

Comments

@ft-harai
Copy link

ft-harai commented Apr 5, 2018

Hello.

I like that this plugin can set several toast positions. But when I set position : 'top-right', the newest toast is shown below the old one, and sometimes the newest toast will overflow the viewport.

I'd suggest prepend option. Currently this plugin always append to $('.jq-toast-wrap'), but if we have an option like prepend: true and have below code, the newest toast can always be shown at top-right in viewport.

if (_options.prepend) {
   _container.prepend( this._toastEl );
} else {
   _container.append( this._toastEl );
}

I'd like to have this feature in this plugin.
Thank you.

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

1 participant