-
Notifications
You must be signed in to change notification settings - Fork 0
/
docking-test.html
55 lines (42 loc) · 1.65 KB
/
docking-test.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Docking Test</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/docking.components.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="scripts/inheritance.js"></script>
<script type="text/javascript" src="scripts/ui/docking.components.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var area = new DockArea($('#dockArea'));
var $column = $('.col', area.$element);
var split = area.splitHorizontal($column);
var panel = new DockPanel();
panel.$title.text("Left");
panel.appendTo(split.left);
var tabs = new TabDockPanel();
tabs.appendTo(split.right);
panel = new DockPanel();
panel.$title.text("Right1");
tabs.addPanel(panel);
new DockPanelCreator($('#createPanel'));
});
</script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col col-md-12">
<span id="createPanel" class="btn btn-primary">NewDockPanel</span>
</div>
</div>
<div id="dockArea">
</div>
</div>
</body>
</html>