Giter Club home page Giter Club logo

easy-sortable's Introduction

easy-sortable

Simple sortable plugin.

What & Why

  • The simplest possible sortable plugin for modern browsers.
  • Fast and responsive. No lags, no stuttering.
  • Allows dragging between several lists. (Only vertical dragging).

It uses jQuery for DOM manipulations & bindings, and CSS3 transitions for animations.

In a further development, I think to:

^ convert from jQuery to pure JS as much as possible.

Usage

  • All the draggable elements should be placed vertically in the same parent container. The elements can be DIV, P, LI, SPAN etc, no matter. To be draggable, they only should have class="drag".
  • The parent container can be BODY, DIV, OL, UL etc. To split it into several lists, add to that container any elements without class "drag". Thus they will be non-draggable and could serve as separators.
  • You can serialize the results of the sorting with a simple script like var list = $('.drag').parent().children
  • See examples (HTML files of this repository).

Versions

Version 0.2 - author Chang Zhao.

Version 0.1 - author Michael Rafaylik.

Please use this freely for the benefit of all beings.

Awakened Mind (Inheritance โ€” Share-Alike) License v. 1.0 http://earth.zen-do.ru/laws/license

easy-sortable's People

Contributors

chang-zhao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.