Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

will_paginate-materialize

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

will_paginate-materialize

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

WillPaginate::Materialize

This gem integrates the MaterializeCSS pagination component with the will_paginate pagination gem.

Installation

Add this line to your application's Gemfile:

gem 'will_paginate-materialize', git: 'https://github.com/mldoscar/will_paginate-materialize', branch: 'master'

And then execute:

$ bundle

Usage

  1. Install Materialize-sass (if you haven't already)
  2. Create a file named will-paginate-materialize.rb inside config/initializers and configure the iconset you want to use.
  WillPaginate::Materialize.configure do |config|
    # Select one of the iconset you want to use
    # Material Design Icons
    config.iconset = :material_design
    # FontAwesome Icons
    config.iconset = :font_awesome
  end
  1. Add the following to your application.scss file
.pagination li.active a {
  color: #fff;
}
  1. For Material Design iconset use: Follow the instructions for installing this gem in order to have this icon style in the left or right arrows: https://github.com/Angelmmiguel/material_icons

  2. For FontAwesome iconset use: Follow the instructions for installing this gem in order to have this icon style in the left or right arrows: https://github.com/bokmann/font-awesome-rails

You're done! Use the will_paginate helper as you would otherwise.

<%= will_paginate @collection %>

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/patricklindsay/will_paginate-materialize. 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.

Further works

  • Add additional specs

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 25 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc