instance method draggable_element

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v3.0.20

Available in: v2.2.3 v2.3.18 v3.0.20

Signature

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_id req
options opt = {}
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close