forked from oria/gridx
/
test_grid_dndrow_nongrid_source.html
81 lines (72 loc) · 1.6 KB
/
test_grid_dndrow_nongrid_source.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html>
<head>
<title>Grid Row DnD - Drag from/to Non-Grid Source</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<link rel='stylesheet' href="support/common.css" />
<style type="text/css">
.gridContainer {
width: 500px;
height: 400px;
margin: 10px;
}
.gridx {
height: 100%;
}
#draggableItems {
width: 500px;
height: 400px;
border: 3px solid #ccc;
radius: 8pt;
-moz-border-radius: 8pt 8pt;
overflow: scroll;
}
.songItem {
display: inline-block;
border: 2px solid #aaa;
font-weight: bold;
margin: 5px;
padding: 3px;
radius: 5pt;
-moz-border-radius: 5pt 5pt;
position: relative;
}
.songItemId {
color: red;
float: left;
}
.songItemName {
color: blue;
display: block;
text-align: center;
margin-left: 20px;
}
.songItemArtist {
display: block;
text-align: center;
}
.songItem:hover {
background-color: #33ffff;
}
.dojoDndItemAnchor, .dojoDndItemSelected {
background-color: #abcdef;
}
</style>
<script type="text/javascript" src="../../dojo/dojo.js" data-dojo-config="async: true"></script>
<script type="text/javascript" src='support/common.js'></script>
<script type="text/javascript" src='test_grid_dndrow_nongrid_source.js'></script>
</head>
<body class='claro'>
<h1 class='title'>Grid Row DnD - Drag from/to Non-Grid Source</h1>
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>
<div id='draggableItems'></div>
</td>
<td>
<div id='grid1Container' class='gridContainer'></div>
</td>
</tr>
</table>
</body>
</html>