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
70 lines (67 loc) · 1.96 KB
/
checkbox.html
File metadata and controls
70 lines (67 loc) · 1.96 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
<!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.5.3/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
};
});
</script>
</head>
<body>
<mui-container ng-controller="ExampleCtrl">
<h1>Checkbox</h1>
<mui-panel>
<form method="get" action="">
<mui-checkbox
label="checkbox1"
name="box1"
value="select1"
ng-model="check.select1"
>
</mui-checkbox>
<mui-checkbox
label="checkbox2"
name="box2"
value="select2"
ng-model="check.select2"
>
</mui-checkbox>
<mui-checkbox
label="checkbox3"
name="box3"
value="select3"
ng-model="check.select3"
>
</mui-checkbox>
<mui-checkbox
label="checkbox4"
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>
<mui-button color="primary">submit</mui-button>
</form>
</mui-panel>
</mui-container>
</body>
</html>