Draggable Element Element

Getting Started | API | Elements | Actions | Validators | Handlers | About

Table of Contents

1 Draggable Element - #draggable {}

The draggable element allows you to make a block of Nitrogen elements draggable by the user.

Combine the draggable element with the droppable element to allow drag and drop behavior.

1.1 Usage

#draggable { tag=drag1, clone=true, revert=false, handle=grip, body=[
  #image { class=grip, url="/images/handle.png" },
  #span { text="This is a draggable block." }
]}

1.2 Attributes

tag - (Erlang term)
The drag term to pass into the drop_event/2 event.
body - (Nitrogen elements)
The elements that will be draggable.
group - (atom or string)
The name of this drag group, for use in the droppable element's accept_groups attribute.
handle - (atom or string)
clone - (boolean)
revert - (boolean)

1.3 See Also

Author: Rusty Klophaus (@rklophaus)

Date: 2010-11-22 10:50:11 EST

HTML generated by org-mode 7.01h in emacs 24