Giter Site home page Giter Site logo

dropme's Introduction

DropMe Plugin

DropMe provides drag and drop features for html elements using jquery.

DEMO

Browser Support

  • Internet Explorer 8+
  • Chrome 10+
  • Firefox 3.5+
  • Safari 4+
  • Opera 11+

Size

  • Less than 1KB

Usage

For List with Object to insert data

var options = {
	contId:'ID to insert list',
	elem:[{id:1,title:'nitin'},{id:2,title:'ankit'},{id:3,title:'himanshu'},{id:4,title:'prashu'}]
	}
$('.dropme').dropme(options);

Use dropme method to create a draggable list:

$('.dropme').dropme();

Use sortupdate event if you want to do something when the order changes:

$('.dropme').dropme().bind('sortupdate', function(e, elm) {
    //Triggered when the position has changed.
});

Use items option to specifiy which items inside the element should be sortable:

$('.dropme').dropme({
    items: ':not(.disabled)'
});

Setting 'replacerSize' option to true, forces the placeholder to have a height:

$('.dropme').dropme({
    replacerSize: true 
});

Use linkTo option to create connected lists:

$('#id1,#id2').dropme({
    linkTo: '.connected'
});

To remove the sortable functionality completely:

$('.dropme').dropme('destroy');

To disable the sortable temporarily:

$('.dropme').dropme('disable');

To enable a disabled sortable:

$('.dropme').dropme('enable');

LICENSE

Please see LICENSE.md for detail


Author

Nitin Giri

dropme's People

Contributors

nuriakman 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.