-
Notifications
You must be signed in to change notification settings - Fork 69
/
index.html
53 lines (52 loc) · 1.98 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>vue-dragula</title>
<link rel="stylesheet" href="styles/dragula.css">
<link rel="stylesheet" href="example/example.css">
</head>
<body>
<h1>
<a href="https://github.com/Astray-git/vue-dragula">
<img src="../resources/logo.svg" onerror="this.src='resources/logo.png'" alt="vue-dragula"/></a>
</h1>
<h3 class="tagline">Drag and drop so simple it hurts</h3>
<a href="https://github.com/Astray-git/vue-dragula">
<img class="gh-fork"
src="https://camo.githubusercontent.com/52760788cde945287fbb584134c4cbc2bc36f904/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f77686974655f6666666666662e706e67"
alt="Fork me on GitHub"
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" />
</a>
<div class="parent">Note: these examples mimic the ones for <code>dragula</code>, but using <code>vue-dragula</code>.</div>
<div class="examples" id="examples">
<div class="parent">
<label for="hy">Move stuff between these two containers. Note how the stuff gets inserted near the mouse pointer? Great stuff.</label>
<div class="wrapper">
<div class="container" v-dragula="colOne" bag="first-bag">
<div v-for="text in colOne" @click="onClick">{{text}} [click me]</div>
</div>
<div class="container" v-dragula="colTwo" bag="first-bag">
<div v-for="text in colTwo">{{text}}</div>
</div>
</div>
<pre>
<code>
<div v-dragula="colOne" bag="first-bag"></div>
<div v-dragula="colTwo" bag="first-bag"></div>
</code>
</pre>
<h4>Result</h5>
<p>
<h5>colOne</h5>
{{colOne | json}}
</p>
<p>
<h5>colTwo</h5>
{{colTwo | json}}
</p>
</div>
</div>
<script src="example/example.build.js"></script>
</body>
</html>