Giter Site home page Giter Site logo

taggle's Introduction

Taggle

Gem Version

This gem is a wrapper of the Taggle.js project, that allows you to include Taggle.js in your Rails app, using the asset pipeline. The gem currently includes v1.11.1 of Taggle.js.

Installation

Add this line to your application's Gemfile:

gem 'taggle'

And then execute:

$ bundle

Or install it yourself as:

$ gem install taggle

Usage

Include the taggle javascript in your app/assets/javascripts/application.js or app/assets/javascripts/vendor.js:

//= require taggle-full

This will include taggle-ie8.js, taggle-ie9.js and taggle.js. You can also require each one of these three files individually if you prefer.

Stylesheets

I put together several styles based on the official examples of Taggle.js. These styles should be enough for you to get started but they probably require some overriding to fit your page design.

To use this unofficial set of styles, include in your app/assets/stylesheets/application.js or app/assets/stylesheets/vendor.js:

*= require taggle

And add the class taggle to the div you'll use to wrap the tags. Example:

<div id="example" class='taggle'></div>

<%= javascript_tag do %>
  new Taggle('example');
<%= end %>

License

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

taggle's People

Contributors

hsgubert avatar

Watchers

James Cloos avatar Coontail avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.