-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathangular-ui-datepicker.html
More file actions
65 lines (53 loc) · 2.26 KB
/
angular-ui-datepicker.html
File metadata and controls
65 lines (53 loc) · 2.26 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
<html lang="en" >
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Angular Material style sheet -->
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.css">
<!-- Angular Material requires Angular.js Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-messages.min.js"></script>
</head>
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.js"></script>
<body ng-app="BlankApp" ng-cloak>
<!--
Your HTML content here
-->
<md-content ng-controller="AppCtrl as ctrl" layout-padding ng-cloak>
<div layout-gt-xs="row">
<div flex-gt-xs>
<h4>Standard date-picker</h4>
<md-datepicker ng-model="ctrl.myDate" md-placeholder="Enter date"></md-datepicker>
</div>
<div flex-gt-xs>
<h4>Disabled date-picker</h4>
<md-datepicker ng-model="ctrl.myDate" md-placeholder="Enter date" disabled></md-datepicker>
</div>
</div>
<div layout-gt-xs="row">
<div flex-gt-xs>
<h4>Opening the calendar when the input is focused</h4>
<md-datepicker ng-model="ctrl.myDate" md-placeholder="Enter date" md-open-on-focus></md-datepicker>
</div>
<div flex-gt-xs>
<h4>Date-picker that goes straight to the year view</h4>
<md-datepicker ng-model="ctrl.myDate" md-current-view="year" md-placeholder="Enter date"></md-datepicker>
</div>
</div>
<div layout-gt-xs="row">
<div flex-gt-xs>
<h4>Custom calendar trigger</h4>
<md-datepicker ng-model="ctrl.myDate" md-placeholder="Enter date" md-is-open="ctrl.isOpen"></md-datepicker>
<md-button class="md-primary md-raised" ng-click="ctrl.isOpen = true">Open</md-button>
</div>
</div>
</md-content>
<script>
angular.module('BlankApp', ['ngMaterial', 'ngMessages']).controller('AppCtrl', function() {
this.myDate = new Date();
this.isOpen = false;
});
</script>
</body>
</html>