-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pc-david\david.desmaisons
committed
Jul 25, 2016
1 parent
f89f709
commit cf9d749
Showing
4 changed files
with
77 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!doctype html> | ||
<html class="no-js" lang=""> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>Example two lists clone</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<link rel="stylesheet" href="css/main.css"> | ||
</head> | ||
<body> | ||
|
||
<div id="main"> | ||
<h1>Vue Dragable For</h1> | ||
|
||
<div class="drag"> | ||
<h2>List 1 v-dragable-for</h2> | ||
<div id="list1" class="dragArea" > | ||
<div v-dragable-for="element in list1" options='{"group":{ "name":"people", "pull":"clone", "put":false }}' track-by="$index"> | ||
{{element.name}} | ||
</div> | ||
</div> | ||
|
||
<h2>List 2 v-dragable-for</h2> | ||
<div id="list2" class="dragArea"> | ||
<div v-dragable-for="element in list2" options='{"group":"people"}' track-by="$index">{{element.name}}</div> | ||
</div> | ||
</div> | ||
|
||
<div class="normal"> | ||
<h2>List 1 v-for</h2> | ||
<div> | ||
<div v-for="element in list1" track-by="$index">{{element.name}}</div> | ||
</div> | ||
|
||
<h2>List 2 v-for</h2> | ||
<div> | ||
<div v-for="element in list2" track-by="$index">{{element.name}}</div> | ||
</div> | ||
</div> | ||
|
||
<a href="index.html">See basic example</a> | ||
<a href="complex.html">See 2 lists example</a> | ||
|
||
<script type="text/javascript" src="..\libs\vue\dist\vue.js"></script> | ||
<script type="text/javascript" src="..\libs\lodash\lodash.js"></script> | ||
<script type="text/javascript" src="..\libs\Sortable\Sortable.js"></script> | ||
<script type="text/javascript" src="src\vuedragablefor.js"></script> | ||
<script type="text/javascript" src="script\complex.js"></script> | ||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters