forked from muicss/mui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckbox.html
More file actions
140 lines (129 loc) · 3.63 KB
/
checkbox.html
File metadata and controls
140 lines (129 loc) · 3.63 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!doctype html>
<html ng-app="myApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- for example only -->
<script src="../assets/vendor/angular/1.6.0/angular.js"></script>
<!-- end -->
<link rel="stylesheet" type="text/css" href="../assets/mui/css/mui.css"/>
<script src="../assets/mui/angular/mui-angular.js"></script>
<script>
var myApp = angular.module("myApp", ["mui"]);
myApp.controller("ExampleCtrl", function($scope) {
$scope.check = {
select1: true,
select2: false,
select3: true,
select4: true,
select5: true,
select6: false,
select7: true,
select8: false
};
});
</script>
</head>
<body>
<mui-container ng-controller="ExampleCtrl">
<h1>Checkbox</h1>
<mui-panel>
<form method="get" action="">
<mui-checkbox
label="Should be checked"
name="box1"
value="select1"
ng-model="check.select1"
>
</mui-checkbox>
<mui-checkbox
label="Should be empty"
name="box2"
value="select2"
ng-model="check.select2"
>
</mui-checkbox>
<mui-checkbox
label="Should be checked"
name="box3"
value="select3"
ng-model="check.select3"
>
</mui-checkbox>
<mui-checkbox
label="Should be checked and disabled"
name="box4"
value="select4"
ng-model="check.select4"
ng-disabled="true"
>
</mui-checkbox>
<p>checkbox1: {{check.select1}}</p>
<p>checkbox2: {{check.select2}}</p>
<p>checkbox3: {{check.select3}}</p>
<p>checkbox4: {{check.select4}}</p>
<hr>
<mui-checkbox
label="Should be empty"
name="box5"
value="select5"
ng-model="check.select5"
ng-checked="false"
>
</mui-checkbox>
<mui-checkbox
label="Should be checked"
name="box6"
value="select6"
ng-model="check.select6"
ng-checked="true"
>
</mui-checkbox>
<hr>
<div>
<label>
<input
type="checkbox"
name="box7"
value="select7"
ng-model="check.select7"
ng-checked="false"
/>
Should be empty
</label>
</div>
<div>
<label>
<input
type="checkbox"
name="box8"
value="select8"
ng-model="check.select8"
ng-checked="true"
/>
Should be checked
</label>
</div>
<hr>
<mui-checkbox
label="Should be checked"
name="box9"
value="select9"
ng-checked="true"
>
</mui-checkbox>
<mui-checkbox
label="Should be empty"
name="box10"
value="select10"
ng-checked="false"
>
</mui-checkbox>
<hr>
<mui-button color="primary">submit</mui-button>
</form>
</mui-panel>
</mui-container>
</body>
</html>