Sha256: 66d400fca14f7291de44e3259d6d148886741216368d6ff35cae96a0a21be60b
Contents?: true
Size: 1.77 KB
Versions: 2
Compression:
Stored size: 1.77 KB
Contents
= ColorboxRails Make links open in lightbox (colorbox) a breeze = Usage in your application.css <tt> *= require colorbox-rails</tt> in your application.js <tt>//= require colorbox-rails</tt> Then enable link to be displayed in colorbox by simply adding :colorbox => true attribute. E.g. <tt><%= link_to "My superb link", "#", :data => { :colorbox => true } %></tt> <a href="#" data-colorbox="true">My superb link</a> Add attributes inside the :data block <tt><%= link_to "My superb link", "#", :data => { :colorbox => true, :colorbox_height => '300px', :colorbox_width => '300px', :colorbox_iframe => true } %></tt> = Available data options * colorbox-height (http://www.jacklmoore.com/colorbox/#setting-height) * colorbox-width (http://www.jacklmoore.com/colorbox/#setting-width) * colorbox-max-height (http://www.jacklmoore.com/colorbox/#setting-maxHeight) * colorbox-max-width (http://www.jacklmoore.com/colorbox/#setting-maxWidth) * colorbox-iframe (http://www.jacklmoore.com/colorbox/#setting-iframe) * colorbox-photo (http://www.jacklmoore.com/colorbox/#setting-photo) * colorbox-innerheight (http://www.jacklmoore.com/colorbox/#setting-innerheight) * colorbox-innerwidth (http://www.jacklmoore.com/colorbox/#setting-innerwidth) * colorbox-title (http://www.jacklmoore.com/colorbox/#setting-title) * colorbox-class-name (http://www.jacklmoore.com/colorbox/#setting-className) * colorbox-href (http://www.jacklmoore.com/colorbox/#setting-href) * colorbox-html (http://www.jacklmoore.com/colorbox/#setting-html) = Available link options * rel (need colorbox-static data-attribute to work) (http://www.jacklmoore.com/colorbox/#setting-rel) <tt><%= link_to "My superb link", "#", rel: 'group1', :data => { :colorbox_static => true } %></tt> = License This project rocks and uses MIT-LICENSE.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
colorbox-rails-0.1.2 | README.rdoc |
colorbox-rails-0.1.1 | README.rdoc |