ActionView::Helpers::ScriptaculousHelper

draggable_element

Description

draggable_element(element_id, options = {})


Makes the element with the DOM ID specified by element_id draggable.

Examples:
  1. <%= draggable_element("my_image", :revert => true) %>

You can change the behaviour with various options, see script.aculo.us for more documentation.

  1. <%= draggable_element("my_image", :revert => true) %>

User Contributed Notes add

No comments