instance method
draggable_element
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.0.20Signature
draggable_element(element_id, options = {})
Makes the element with the DOM ID specified by element_id draggable.
Example:
<%= draggable_element("my_image", :revert => true)
You can change the behaviour with various options, see script.aculo.us for more documentation.
Parameters
-
element_idreq -
optionsopt = {}
Source
# File actionpack/lib/action_view/helpers/scriptaculous_helper.rb, line 162
def draggable_element(element_id, options = {})
javascript_tag(draggable_element_js(element_id, options).chop!)
end
Defined in actionpack/lib/action_view/helpers/scriptaculous_helper.rb line 162
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::ScriptaculousHelper