-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmulti-select-onlyby-checkbox-example.html
100 lines (88 loc) · 4.3 KB
/
multi-select-onlyby-checkbox-example.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<!--
this is a multiSelectOnlybyCheckbox demo of anGrid
-->
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- lib -->
<link rel="stylesheet" href="../lib/bootstrap/css/bootstrap.min.css">
<script SRC="../lib/jquery-1.8.3.js"></script>
<script src="../lib/bootstrap/js/bootstrap.js"></script>
<script src="../lib/angular-1.2.17/angular.js"></script>
<script src="../lib/angular-1.2.17/angular-resource.js"></script>
<script src="../lib/angular-1.2.17/angular-sanitize.js"></script><!-- HTML Parser -->
<!--[if lt IE 8]>
<script src="../lib/json2.js"></script>
<![endif]-->
<!-- mine -->
<link rel="stylesheet" href="style/css/reset.css"><!-- my supplement of bootstrap -->
<link rel="stylesheet" href="../angrid.css"><!-- the css of angrid plugin -->
<link rel="stylesheet" href="style/css/table.css"><!-- the css of page -->
<link rel="stylesheet" href="style/css/instance.css"><!-- the css of page grid -->
<script src="../angrid.js"></script><!-- my grid plugin -->
<script src="js/filter.js"></script><!-- custom common filter -->
<script src="js/resource.js"></script><!-- resource module -->
<script src="js/controller/multi-select-onlyby-checkbox.js"></script><!-- main ng-app module -->
</head>
<body>
<div id="panel_center" style="position:absolute; top: 0px; right: 0px; bottom: 0px; left: 0px;" id="instanceApp"
ng-app="instanceApp" ng-controller="instanceApp.controller">
<div id="top" style="width:100%; height:400px">
<div class="relative">
<div id="dojo_actions" class="relative-top">
<div class="actions pull-left">
<div class="btn-group">
<button class="btn btn-primary"><i class="icon-white icon-plus-sign"></i> 创建虚拟机</button>
</div>
<div class="btn-group">
<button class="btn {{(mySelections.length > 0) || 'disabled'}}"><i class="icon-random"></i> 连接虚拟机</button>
</div>
<div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown" > 更多 <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a class="{{(mySelections.length > 0) || 'disabled'}}"><i class="icon-list"></i> 日志</a></li>
<li><a class="{{(mySelections.length > 0) || 'disabled'}}"><i class="icon-camera"></i> 快照</a></li>
<li class="divider"></li>
<li><a class="{{(mySelections.length > 0) || 'disabled'}}"><i class="icon-play"></i> 开启虚拟机</a></li>
<li><a class="{{(mySelections.length > 0) || 'disabled'}}"><i class="icon-stop"></i> 挂起虚拟机</a></li>
<li><a class="{{(mySelections.length > 0) || 'disabled'}}"><i class="icon-repeat"></i> 重启虚拟机</a></li>
<li class="divider"></li>
<li><a class="{{(mySelections.length > 0) || 'disabled'}}"><i class="icon-trash"></i> 删除虚拟机</a></li>
</ul>
</div>
<div class="btn-group">
<button class="btn {{(angridOptions.angridStyle != 'th-list') || 'active'}}" ng-click="angridOptions.angridStyle='th-list'"><i class="icon-th-list"></i></button>
<button class="btn {{(angridOptions.angridStyle != 'th-large') || 'active'}}" ng-click="angridOptions.angridStyle='th-large'"><i class="icon-th-large"></i></button>
<button class="btn {{(angridOptions.angridStyle != 'th') || 'active'}}" ng-click="angridOptions.angridStyle='th'"><i class="icon-th"></i></button>
</div>
</div>
<div class="actions pull-right">
<div class="btn-group filter">
<input id="inputIcon" type="text" />
<i class="icon-search"></i>
</div>
<div class="btn-group">
<button class="btn" ><i class="icon-book"></i></button>
</div>
</div>
<div class="clear-both"></div>
</div>
<div class="relative-bottom">
<!-------------- let's test angrid plugin!------------------------>
<div angrid="angridOptions"></div>
</div><!-- end of .relative-bottom -->
</div><!-- end of .relative &-->
</div>
<div id="bottom">
<P>
instanceApp :
<!-- <button ng-click="mySelections=[]" >reset</button> -->
{{mySelections}}
</P>
<p>
angridStyle: {{angridStyle}}
</p>
</div>
</div> <!-- end of #instanceApp -->
</body>