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

bootstrap5-tagsinput-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap5-tagsinput-rails

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Bootstrap5::Tagsinput::Rails

Bootstrap 5 compatible bootstrap-tagsinput-rails. Uses bootstrap-tagsinput 0.8.

Compatibility

Tested on Bootstrap 5.0.0-beta3

Installation

Add this line to your application's Gemfile:

gem 'bootstrap-tagsinput-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bootstrap-tagsinput-rails

Usage

in app/assets/application.js

//= require bootstrap-tagsinput

in app/assets/application.css

*= require bootstrap-tagsinput

in form view, you should add data-role='tagsinput' within input tag as the follows: for example, in simple-form view template,

<%= f.input :tag_list, input_html:{data:{role:'tagsinput'}} %>

Or if using Rails 4 with Bootstrap, use the following,

<%= f.text_field :tag_list, 'data-role'=>'tagsinput' %>

That's it

Contributing

  1. Fork it
  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 new Pull Request

Credits

bootstrap-tagsinput - Original source

bootstrap-tagsinput-rails - Original gemified Rails source

Tim Ville's bootstrap-tagsinput-rails fork - Bootstrap 4 compatible version

FAQs

Package last updated on 30 Mar 2021

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