Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

ngx-datetime

Package Overview
Dependencies
4
Maintainers
1
Versions
4
Issues
File Explorer

Advanced tools

ngx-datetime

ngx-datetime based on ng2-datetime

    1.0.2latest

Version published
Maintainers
1
Yearly downloads
10,330
increased by31.51%

Weekly downloads

Readme

Source

ngx-datetime

npm version

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

  1. import some way or another the required dependencies
  2. import {NKDatetime} from 'ngx-datetime/ngx-datetime';
  3. Add to your component's directives property
@Component({ ... directives: [NKDatetime], ... })
  1. Use it: <datetime [(ngModel)]="date"></datetime>

See the DEMO and it source for more information.

Contributing

Fork > Create > Pull request

Thanks

TODO:

  • test ControlValueAccessor

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc