A Vue component for drag selecting elements. Inspired by react-drag-select.
vue-drag-select
to your project:$ yarn add vue-drag-select # or npm i --save vue-drag-select
import DragSelect from 'vue-drag-select/src/DragSelect.vue'
export default {
components: {
'drag-select-container': DragSelect
}
}
drag-select-container
with a selectorClass
property and a scoped slot:<template>
<drag-select-container selectorClass="itemToBeSelected">
<template slot-scope="{ selectedItems }">
<!-- Your items here -->
</template>
</drag-select-container>
</template>
MIT