angular-material-npfixed
Version:
The Angular Material project is an implementation of Material Design in Angular.js. This project provides a set of reusable, well-tested, and accessible Material Design UI components. Angular Material is supported internally at Google by the Angular.js, M
34 lines (29 loc) • 1.2 kB
HTML
<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>