https://github.com/daddye/lightbox
LightBox Helper is a small but beautifull helper that automatize the process for include LightBox on our pages.
https://github.com/daddye/lightbox
Last synced: 9 months ago
JSON representation
LightBox Helper is a small but beautifull helper that automatize the process for include LightBox on our pages.
- Host: GitHub
- URL: https://github.com/daddye/lightbox
- Owner: DAddYE
- License: other
- Created: 2008-07-02T08:10:42.000Z (almost 18 years ago)
- Default Branch: master
- Last Pushed: 2017-10-13T18:47:00.000Z (over 8 years ago)
- Last Synced: 2025-03-24T00:51:29.053Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://rails.lipsiasoft.com/wiki/lightbox
- Size: 229 KB
- Stars: 39
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
ThickBoxObject v.1.0
====================
This will add a helper for thickboxes in Rails. (It is a fork of Lipsiasoft/lightbox) It is a work in progress, though. So please be patience.
<%= javascript_include_tag :defaults %>
You must add also the stylesheet so add this on your page head:
<%= stylesheet_link_tag 'lightbox' %>
The is very simple for add a LightBox in your page add this:
<%= lightbox_link_to "Link Name", "/path/of/your/image.png" %>
or
<%= lightbox_image_tag("/path/of/your/image-thumb.png", "/path/of/your/image.png", {:class=>"images"}, :title => "This is a test!") %>
You can add, title, controller, action what do u whant becaue it's based on image_tag and link_to.
Vist my website: http://blog.lipsiasoft.com