Skip to content

Commit bec1a1d

Browse files
Merge pull request #357 from lcetinsoy/master
[Documentation] Installation instruction and packagename collision
2 parents 0b80e7b + 43611fe commit bec1a1d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@ Based on and offering all features of [Sortable.js](https://github.com/RubaXa/So
3232
* Cancellation support
3333
* Events reporting any changes when full control is needed
3434
* Reuse existing UI library components (such as [vuetify](https://vuetifyjs.com), [element](http://element.eleme.io/), or [vue material](https://vuematerial.io) etc...) and make them draggable using `element` and `componentData` props
35+
## Installation
36+
37+
### With npm or yarn
38+
39+
```bash
40+
yarn add vuedraggable
41+
42+
npm i -S vuedraggable
43+
```
44+
45+
**Beware it is vuedraggable and not vue-draggable which is another package**
46+
47+
### with direct link
48+
```html
49+
50+
<script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.5.2/vue.min.js"></script>
51+
<!-- CDNJS :: Sortable (https://cdnjs.com/) -->
52+
<script src="//cdn.jsdelivr.net/npm/[email protected]/Sortable.min.js"></script>
53+
<!-- CDNJS :: Vue.Draggable (https://cdnjs.com/) -->
54+
<script src="//cdnjs.cloudflare.com/ajax/libs/Vue.Draggable/2.15.0/vuedraggable.min.js"></script>
55+
56+
```
57+
58+
[cf example section](https://github.com/SortableJS/Vue.Draggable/tree/master/examples)
3559

3660
## For Vue.js 2.0
3761

0 commit comments

Comments
 (0)