No commit activity in last 3 years
No release in over 3 years
Rails plugin for jQueryUI wideget WebFont-Select.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 10.0
~> 3.0
 Project Readme

WebfontSelect::Rails

This is a rails gem for the Webfont-Select jQuery UI Widget. Please see its project page for details and use.

Installation

Add this line to your application's Gemfile:

gem 'webfont-select-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install webfont-select-rails

Usage

  1. make sure you have both jQuery and jQuery UI running in your app.

  2. add the following to your application.js file

  • require webfontloader.js
  • require webfont.select.js
  1. add the following to your application.css file
  • require webfont.select.css
  1. see Webfont-Select jQuery UI Widget for usage and calls

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nicollis/webfont-select-rails.

Changelog

  • 2016-10-24 -- v0.1.4 -- Initial public release with tested Google support
  • 2016-10-26 -- v0.1.5 -- Updated to webfont-select v0.1.5
  • 2016-10-31 -- v0.1.6 -- Updated webfont-select (Fixed issue with font generation when font had 3+ words)
  • 2016-11-01 -- v0.2.0 -- Updated webfont-select (Enabled type-to-filter input)
  • 2016-11-01 -- v0.3.0 -- Updated webfont-select (Enabled load_all_fonts option to enable loading all fonts on page load)
  • 2016-11-01 -- v0.3.2 -- Updated webfont-select (Fixed load bug when pre-loading large font list, fixed bug with downloading already downloaded fonts)
  • 2016-11-03 -- v0.3.3 -- Updated webfont-select (Added timeout to all fonts load to help break up large font load-ins)
  • 2016-11-06 -- v0.4.0 -- Updated webfont-select (First font in list is now selected while typing, enter key selects first font and closes dropdown)
  • 2016-11-07 -- v0.4.1 -- Updated webfont-select (Changed font_url to updated to highlighted font while typing in font name, before hitting enter)
  • 2016-11-07 -- v0.4.2 -- Update webfont-select (Moved trigger to end of select font call so element is fully updated before triggering callback)
  • 2016-11-08 -- v0.5.0 -- Update webfont-select (Implemented default_font_name option to generate url when unknown font is typed...)
  • 2016-11-08 -- v0.5.1 -- Update webfont-select (Updated trigger to work via bind and include same payload data as "change")

Author

Copyright (c) 2016 Nicholas Ollis. Released under the MIT License. See LICENSE.txt for license info.