ngx-datetime
v1.0.2
Published
ngx-datetime based on ng2-datetime
Downloads
134
Maintainers
Readme
ngx-datetime
Angular 5 compatible (by https://github.com/robisim74/angular-library-starter) fork of https://github.com/nkalinov/ng2-datetime datetime picker (plugins wrapper)
NPM PACKAGE: https://www.npmjs.com/package/ngx-datetime
DEMO: https://nkalinov.github.io/ng2-datetime
Dependencies
- Bootstrap3 (CSS only)
- jQuery 2+ (supports v3)
- Bootstrap-datepicker (JS+CSS)
npm install --save bootstrap-datepicker
- or use the bundled version from
src/vendor/bootstrap-datepicker
- Bootstrap-timepicker (JS+CSS)
npm install --save bootstrap-timepicker
- or use the bundled version from
src/vendor/bootstrap-timepicker
Installation
npm install --save ngx-datetime
Usage
- import some way or another the required dependencies
import {NKDatetime} from 'ngx-datetime/ngx-datetime';
- Add to your component's directives property
@Component({
...
directives: [NKDatetime],
...
})
- Use it:
<datetime [(ngModel)]="date"></datetime>
See the DEMO and it source for more information.
Contributing
Fork > Create > Pull request
Thanks
- @jdewit for the timepicker plugin
- @eternicode for the datepicker plugin
TODO:
- test ControlValueAccessor