Sha256: 2371754107586f2c5dfb03c8d6aca6d6444630a6f5ac5e6f1943e362e5fc29bf

Contents?: true

Size: 1.4 KB

Versions: 5

Compression:

Stored size: 1.4 KB

Contents

# ToastrRails

This is an opninionated [toaster](http://codeseven.github.io/toastr/demo.html) asset gem.
It sets some defaults, adds support for flash messages and assumes you have a navbar.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'toastr_rails'
```

And then execute:

    $ bundle

## Usage

Add to your application.js and application.css:
  
    //= require toastr_rails

You can put this in your layout/application.html file if you want to chach flash messages in a toast: 

    = render 'toastr_rails/flash'

## Defaults:

    // javascript
    toastr.options = {
      "closeButton": true,
      "debug": false,
      "progressBar": true,
      "positionClass": "toast-top-right",
      "showDuration": "300",
      "hideDuration": "1000",
      "timeOut": "5000",
      "extendedTimeOut": "1000",
      "showEasing": "swing",
      "hideEasing": "linear",
      "showMethod": "fadeIn",
      "hideMethod": "fadeOut"
    };

    // css
    #toast-container{
      top: 70px;
    }

For all other options you can visit [http://codeseven.github.io/toastr/](http://codeseven.github.io/toastr/)

## Contributing

1. Fork it ( https://github.com/[my-github-username]/toastr_rails/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
toastr_rails-2.1.3 README.md
toastr_rails-2.1.1 README.md
toastr_rails-2.1.0.2 README.md
toastr_rails-2.1.0.1 README.md
toastr_rails-2.1.0 README.md