【文件属性】:
文件名称:rails-bootstrap-toggle-buttons:Rails资产管道的非官方引导切换按钮(> 3.1)
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-12 19:02:29
Ruby
Rails :: Bootstrap :: Toggle :: Buttons
这款宝石旨在提供捆绑在简单宝石中的靴子。
安装
将此行添加到您的应用程序的Gemfile中:
gem 'rails-bootstrap-toggle-buttons'
然后执行:
$ bundle
或将其自己安装为:
$ gem install rails-bootstrap-toggle-buttons
用法
只需添加到您的application.css :
*= require bootstrap-toggle-buttons
并到您的application.js :
//= require bootstrap-toggle-buttons
然后按照。
入侵simple_forms
简单的表单会在input type='checkbox'周围添加label ,并且还会添加一些自定义样式
【文件预览】:
rails-bootstrap-toggle-buttons-master
----.gitignore(154B)
----rails-bootstrap-toggle-buttons.gemspec(749B)
----LICENSE.txt(10KB)
----README.md(1KB)
----vendor()
--------assets()
----lib()
--------rails-bootstrap-toggle-buttons.rb(150B)
----Rakefile(28B)