forked from frapontillo/angular-bootstrap-switch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (104 loc) · 3.58 KB
/
index.html
File metadata and controls
115 lines (104 loc) · 3.58 KB
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
<!doctype html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>AngularJS Bootstrap Switch example</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="../bower_components/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css">
</head>
<body ng-app="bsSwitchApp">
<!--[if lt IE 9]>
<script src="../bower_components/es5-shim/es5-shim.js"></script>
<script src="../bower_components/json3/lib/json3.min.js"></script>
<![endif]-->
<form name="form" class="container" ng-controller="MainCtrl">
<!--<input
bs-switch
ng-model="isSelected"
type="radio"
switch-active="{{ isActive }}"
switch-on-text="{{ onText }}"
switch-off-text="{{ offText }}"
switch-on-color="{{ onColor }}"
switch-off-color="{{ 'danger' }}"
switch-animate="{{ animate }}"
switch-size="{{ size }}"
switch-label="{{ label }}"
switch-icon="{{ icon }}"
switch-radio-off="{{ radioOff }}"
switch-label-width="{{ labelWidth }}"
switch-handle-width="{{ handleWidth }}"
switch-wrapper="{{ wrapper }}"
ng-value="'uno'"
ng-true-value="'yep'"
ng-false-value="'nope'"
switch-inverse="{{ !inverse }}"
switch-readonly="{{ readonly }}">
<input
bs-switch
ng-model="isSelected"
type="radio"
switch-active="{{ isActive }}"
switch-on-text="{{ onText }}"
switch-off-text="{{ offText }}"
switch-on-color="{{ onColor }}"
switch-off-color="{{ offColor }}"
switch-animate="{{ animate }}"
switch-size="{{ size }}"
switch-label="{{ label }}"
switch-icon="{{ icon }}"
switch-radio-off="{{ radioOff }}"
switch-label-width="{{ labelWidth }}"
switch-handle-width="{{ handleWidth }}"
switch-wrapper="{{ wrapper }}"
ng-value="'dos'"
ng-true-value="'yep'"
ng-false-value="'nope'"
switch-inverse="{{ !inverse }}">-->
{{ isSelected }}
<br>
<input
bs-switch
ng-model="isSelected"
type="checkbox"
switch-active="{{ isActive }}"
switch-on-text="{{ onText }}"
switch-off-text="{{ offText }}"
switch-on-color="{{ onColor }}"
switch-off-color="{{ offColor }}"
switch-animate="{{ animate }}"
switch-size="{{ size }}"
switch-label="{{ label }}"
switch-icon="{{ icon }}"
switch-radio-off="{{ radioOff }}"
switch-label-width="{{ labelWidth }}"
switch-handle-width="{{ handleWidth }}"
switch-wrapper="{{ wrapper }}"
ng-true-value="'yep'"
ng-false-value="'nope'"
switch-inverse="{{ !inverse }}">
<input type="button" value="toggle value" ng-click="toggle()">
<input type="button" value="toggle value / activation" ng-click="toggle(); toggleActivation();">
<input type="button" value="set undefined value" ng-click="setUndefined()">
</form>
</div>
<script src="../bower_components/jquery/dist/jquery.js"></script>
<script src="../bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="../bower_components/bootstrap-switch/dist/js/bootstrap-switch.js"></script>
<script src="../bower_components/angular/angular.js"></script>
<script src="../common/module.js"></script>
<script src="../src/directives/bsSwitch.js"></script>
<script src="scripts/app.js"></script>
<script src="scripts/controllers/main.js"></script>
</body>
</html>