Angular-dragon-drop.js bidirectional data binding drag and drop function

Source: Internet
Author: User

In the company's background logistics, involving 34 provinces and municipalities divided into two parts, part of the distribution area, the other part of the non-distribution area, want to use the function of drag and drop to achieve, the best two parts of the array can be automatically updated.

Just find the Angular-dragon-drop.js plugin to implement. The array elements are automatically updated by dragging.

For example <script>    var arr1=[{name: ' Wang ', id:11,city: ' Beijing '},{name: ' Chang ', id:22, ' Hangzhou '}];    var arr2=[];</script>//arr1 for distribution area arr2 to non-delivery area

Dragging through the plugin will automatically update the data by putting the elements in the arr1 {name: ' Wang ', id:11,city: ' Beijing '} objects into the arr2.

<! DOCTYPE html>

  

Angular-dragon-drop.js bidirectional data binding drag and drop function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.