Is there any component in rails that makes a draggable window? My
current application needs to have windows containing controls that can
be moved to new locations on the browser.
Thanks
Rob
Is there any component in rails that makes a draggable window? My
current application needs to have windows containing controls that can
be moved to new locations on the browser.
Thanks
Rob
Rob Mayhew wrote:
Is there any component in rails that makes a draggable window?
The draggable functionality is provided through javascript. Take a look
at the script.aculo.us documentation at
http://wiki.script.aculo.us/scriptaculous/show/DragAndDrop
Script.aculo.us is by default included in any rails app under the
public/javascripts directory. There are rails wrappers around the
script.aculo.us library. Have a look at the rails API’s for
ActionView::Helpers::JavaScriptHelper - there is a draggable_element
method there.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs