CodeSeven / toastr

Simple javascript toast notifications
http://www.toastrjs.com
MIT License
11.91k stars 2.04k forks source link

Options - Ruby On Rails #531

Open elmoaaron opened 6 years ago

elmoaaron commented 6 years ago

It is not posible to customize toastr.options.closeButton = true; any option do not work.

jacobherrington commented 6 years ago

Some options do work, but I have closeButton doesn't seem to be one of them.

ThePudgyPlatypi commented 6 years ago

It is working for me. toastr.options = {"closeButton": true}; works as expected when placed in my application.js file. I have not come across an option that does not work yet. I will try to help if I can.

elmoaaron commented 6 years ago

I have tried many things and nothing.

richhollis commented 5 years ago

I couldn't get it to work with a Rails 5 project either.

I just used the npm version instead which does work with the options. Pretty easy to get npm going with your Rails project: https://ricostacruz.com/til/npm-in-rails