Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
vue-multi-drag
Advanced tools
![Vue-multi-drag icon](assets/drag.png)
Vue implementation to support drag'n'drop multiple items at the same time. Most of the code comes from https://www.sitepoint.com/accessible-drag-drop/
npm i vue-multi-drag --save
main.js
import VueMultiDrag from 'vue-multi-drag'
Vue.use(VueMultiDrag)
YourComponent.vue
<template>
<div class="template-class">
<div class="col col-3">
<ul v-mz-dropzone>
<li v-mz-drag>Element 1</li>
<li v-mz-drag>Element 2</li>
<li v-mz-drag>Element 3</li>
<li v-mz-drag>Element 4</li>
<li v-mz-drag>Element 5</li>
</ul>
</div>
<div class="col col-3">
<ul v-mz-dropzone>
</ul>
</div>
<div class="col col-3">
<ul v-mz-dropzone>
</ul>
</div>
</div>
</template>
The li-tags can also be generated with a for-loop
In Windows when you have multiple items selected in the explorer and you start
dragging, a big Icon with an selected Item counter appears above your cursor.
This helps keep track of selected items.
Assign a group to each dropzone, so that items in that group can only be dropped in their corresponding group. For instance, there are 3 dropzones assigned to group 'groupX' and 2 dropzones assigned to group 'groupZ'. The items inside groupX can only be dropped to zones in 'groupX'.
# install deps
npm install
# serve demo at localhost:8080
npm run dev
Copyright (c) 2019 msz
FAQs
Drag'n'Drop with multiple Elements. Provides a vue directive for draggable element and a vue directive for dropzones.
The npm package vue-multi-drag receives a total of 50 weekly downloads. As such, vue-multi-drag popularity was classified as not popular.
We found that vue-multi-drag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.