-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
139 lines (126 loc) · 4.82 KB
/
demo.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>ng-tooltip demo</title>
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.17/angular.js"></script>
<script type="application/javascript" src="ng-tooltip.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.css" />
<link rel="stylesheet" href="ng-tooltip.css" />
<script>
angular.module('ngToolipDemo', ['ng-tooltip']);
</script>
</head>
<body ng-app="ngToolipDemo">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 text-center">
<h1>ng-tooltip demo</h1>
</div>
</div>
<table class="table table-striped">
<thead>
<tr>
<th>What</th>
<th>Demo</th>
<th>Hints</th>
</tr>
</thead>
<tbody>
<!-- Hover-->
<tr>
<td>
on:hover
</td>
<td class="text-center">
<button id="btn-hover" class="btn btn-info">Hover Me!</button>
<tooltip
handle="btn-hover"
on="hover"
position="bottom">
I popup on hover!
</tooltip>
</td>
<td></td>
</tr>
<!-- Click -->
<tr>
<td>
on:click
</td>
<td class="text-center">
<button id="btn-click" class="btn btn-info">Click Me!</button>
<tooltip
handle="btn-click"
on="click"
position="bottom">
I popup on click!
</tooltip>
</td>
<td></td>
</tr>
<!-- Positions -->
<tr>
<td>
Positions
</td>
<td class="text-center">
<button id="btn-left" class="btn btn-info">Position:Left</button>
<tooltip
handle="btn-left"
on="hover"
position="left">
Left
</tooltip>
<button id="btn-top" class="btn btn-info">Position:Top</button>
<tooltip
handle="btn-top"
on="hover"
position="top">
Top
</tooltip>
<button id="btn-bottom" class="btn btn-info">Position:Bottom</button>
<tooltip
handle="btn-bottom"
on="hover"
position="bottom">
Bottom
</tooltip>
<button id="btn-right" class="btn btn-info">Position:Right</button>
<tooltip
handle="btn-right"
on="hover"
position="right">
Right
</tooltip>
</td>
<td></td>
</tr>
<!-- Disabled?-->
<tr>
<td>
disabled?
</td>
<td class="text-center">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="enabled"> Enable
</label>
</div>
<button id="btn-disabled" class="btn btn-info">Hover Me!</button>
<tooltip
handle="btn-disabled"
on="hover"
position="bottom"
disabled="!enabled">
I popup only when enabled!
</tooltip>
</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>