-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmoverComponentSample.html
59 lines (53 loc) · 2.08 KB
/
moverComponentSample.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
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue-Mover Sample</title>
<link rel="stylesheet" href="scripts/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="scripts/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="vue-mover.css">
<style>
[v-cloak] {display: none}
</style>
<style>
/* override panel height for second panel */
#Mover2 .mover-panel {
height: 600px !important;
}
#Mover2 {
margin-top: 20px;
}
</style>
</head>
<body>
<div id="Body" style="padding: 10px;">
<h1>{{pageTitle}}</h1>
<div class="container" style="margin-top: 80px">
<mover :left-items="unselectedItems" :right-items="selectedItems"
title-left="Available Items" title-right="Selected Items"
moved-item-location="bottom"
v-on:item-moved="itemMoved"
v-cloak></mover>
<mover
:left-items="unselectedItems2"
:right-items="selectedItems2"
:font-awesome="false"
title-left="More Available Items"
title-right="More Selected Items" v-cloak
target-id="Mover2"
></mover>
<hr />
<button class="btn btn-primary" @click="saveItems()" >Show Selected Items</button>
<h3>Bound and updated model values (first mover)</h3>
<pre>{{unselectedItems}}</pre>
<pre>{{selectedItems}}</pre>
</div>
</div>
<script src="scripts/vue.js"></script>
<script src="scripts/Sortable.min.js"></script>
<script src="vue-mover.js"></script>
<script src="moverComponentSample.js"></script>
</body>
</html>