Archive for the Category: Drag and Drop

Migration guide for REDIPS.drag version 5+

REDIPS.drag version 5 has major name changes in properties, methods and event handlers. Here you will find listed old and new names so migration to version 5 should not be a problem. Main intention for this change was to have consistent names of properties, methods and event handlers.

Also posted in JavaScript Download / Preview GitHub 7 Comments

REDIPS.drag documentation - Appendix A

Here is list of keywords (mostly class names) used in REDIPS.drag library. Id of drag container(s) or table cell class names should be named properly to achieve needed functionality like cloning DIV elements, adding trash cell, mark cells, adding row handler or mark table as "nolayout". This post is appendix to the REDIPS.drag documentation post.

Also posted in JavaScript Video Download / Preview GitHub 36 Comments

JavaScript drag and drop plus content shift

Demo is based on REDIPS.drag JavaScript library with enabled shift drop option. After element is dropped to the cell, other elements will be shifted to make room. Animation is optional and can be turned off. The presented demo can be a good start point for various sorting Web applications.

Also posted in JavaScript Video Download / Preview GitHub 33 Comments

Drag and drop table content plus animation

Example shows drag-n-drop functionality in combination with animation. Tables are closed within separated drag containers and actions from any table are mirrored to the other table. Elements can be shuffled or reset to the initial position.

Also posted in JavaScript Video Download / Preview GitHub 12 Comments

REDIPS.drag documentation

REDIPS.drag is a JavaScript drag and drop library focused on dragging table content and table rows. Here you will see a list of public properties and methods contained in REDIPS.drag library. Documentation is generated with JsDoc Toolkit.

Also posted in JavaScript Video Download / Preview GitHub 112 Comments

Drag and drop table rows with JavaScript

REDIPS.drag was initially built to drag and drop table content. After publishing first version of REDIPS.drag, I received a lot of questions about dragging table rows also. Now is possible to drag and drop table rows as well as table content.

Also posted in JavaScript Video Download / Preview GitHub 141 Comments

JavaScript Drag and Drop example 6

Example shows dragging functionality across scrollable DIV containers. If DIV container is bigger then displayed size, approaching element near to the edge will start to auto-scroll.

Also posted in JavaScript Download / Preview GitHub 29 Comments

JavaScript Drag and Drop example 4

Tic-tac-toe is built with Drag and Drop library explained in previous post "Drag and drop table content with JavaScript". Example shows how to move and dynamically enable / disable DIV objects.

Also posted in JavaScript Download / Preview GitHub 21 Comments

JavaScript Drag and Drop example 3

School timetable is example of how to use REDIPS.drag library. Page layout contains two tables: left table with school subjects and timetable on the right. After subject is placed to the timetable, button in the same color will be displayed next to the subject (clone object).

Also posted in JavaScript Video Download / Preview GitHub 142 Comments

JavaScript Drag and Drop example 2

This post shows how to use Drag and Drop library described in my previous post "Drag and drop table content with JavaScript". HTML table is stylized to have left column with content, main table and message line. Elements on the left side (green and orange) should be placed to the coloured table cells. After elements are correctly sited, appropriate message will be displayed.

Also posted in JavaScript Download / Preview GitHub 20 Comments

Drag and Drop table content with JavaScript

Content of HTML table cells can be dragged to another cell or another table. It isn't difficult to define onMouseMove handler and change top / left element styles to move the object. In case with tables, you will have to determine somehow destination cell. Attaching onMouseOver handler on TD elements will not work, because browser doesn't fire events to the elements beneath the dragged object.

Also posted in JavaScript Video Download / Preview GitHub 931 Comments