Simple wrapper around IZITOAST js notification plugin visit Authors website.
Add this line to your application's Gemfile:
gem 'izitoast'
And then execute:
$ bundle
Add this line to your application.js file:
//= require iziToast
Add this line to your application.scss (css):
@import "iziToast";
That's it. It works now
To test how it works, open your browser console and execute next command:
iziToast.success({
title: 'Hey',
message: "It's alive! Congratulations!"
});
You will see notification in the bottom-right corner of your browser.
To find more about usage options, please visit Authors website.
Bug reports and pull requests are welcome on GitHub at https://github.com/BadAllOff/iziToast-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.