2.1.1 • Published 7 years ago
md-datetimepicker v2.1.1
MdDatetimepicker
The Material2 picker extended to include a timepicker and more.
- hammerjs
- angular/material
- angular/forms
- angular/platform-browser
- angular/animations
- rxjs/Subscription
Download
- Download the entire src folder. Rename it to 'datetimepicker' and place it in your root 'app' folder.
Or
- Install with npm
npm i md-datetimepicker --save
Add dependency
import { MdDatetimepickerModule } from 'md-datetimepicker';
The following modules are required:
import { BrowserModule } from '@angular/platform-browser';
import { MaterialModule } from '@angular/material';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import 'hammerjs';
imports: [
BrowserModule,
BrowserAnimationsModule,
MaterialModule,
MdDatetimepickerModule
]
<md-input-container>
<input mdInput [MdDatetimepicker]="picker" [date]="now" placeholder="Choose a date">
<button mdSuffix [mdDatetimepickerToggle]="picker" [hideTime]="false"></button>
</md-input-container>
<md-datetimepicker #picker [hideTime]="false"></md-datetimepicker>
The three following attributes on the HTMLInputElement are optional; you can omit entirely.
- hideTime --datepicker only
michael.mcanulty88@gmail.com Portland, Oregon
If you find an error or would like something added on and don't have time to do so, please let me know and I will try and help.
Michael
2.1.1
7 years ago
2.1.0
7 years ago
2.0.10
7 years ago
2.0.9
7 years ago
2.0.8
7 years ago
2.0.7
7 years ago
2.0.6
7 years ago
2.0.5
7 years ago
2.0.4
7 years ago
2.0.3
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago