Light Window Helper plugin

Plugin details

A LightBox helper.

Repositoryhttp://waydotnet.googlecode.com/svn/trunk/lightwindow_helper/ Author Carlo Bertini Tags LightBox LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://waydotnet.googlecode.com/svn/trunk/lightwindow_helper/

note: this js use Prototype JavaScript framework, version 1.6.0

It's only make an helper, copy the lastest javascripts, css, and images on your public/javascript directory and register the javascript in the AssetTagHelper of rails, so for include the javascript in your page you only can add this (if you havn't yet):

<%= javascript_include_tag :defaults %>



You must add also the stylesheet so add this on your page head:

<%= stylesheet_link_tag 'lightwindow' %>



The is very simple for add a LightWindow in your page add this:

<%= lightwindow_link_to(name, options = {}, html_options = {}, *parameters_for_method_reference) %>



eg:

<%= lightwindow_link_to(
        "Click me !", {:action => 'edit', :id => "12/"}, :title => "This is a test!",
        :author=>"Carlo Bertini",
        :caption=>"Ruby on rails is beautyfull :D"
      ) %>

Further Documentation

Edit plugin | (0 older versions) | Last edited by: Guest, over 4 years ago

Plugin Search

Sponsors