dclib-ngx-daterangepicker
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.3 • Public • Published

    npm install dclib-ngx-daterangepicker --save

    dependencies

    npm install --save moment moment-range npm install --save @angular/material @angular/cdk @angular/animations

    usage

    import { DclibNgxDaterangepicker } from 'dclib-ngx-daterangepicker';

    imports: [ ... DclibNgxDaterangepicker ],

    html

    <dclib-ngx-daterangepicker [dateTimeRangeForm]="yourFormControl" [yourFunction]="yourFunction.bind(this)" [panelClass]="'your-panel-class'">

    ts

    yourFormControl = new FormControl(); // default new Date() --> +5 dayes

        //optional
          //ngOnInit() {
            //this.yourFormControl.setvalue('YYYY-MM-DD HH:mm:ss - YYYY-MM-DD HH:mm:ss ')
          //}
    

    yourFunction(data) { console.log(data) // output {from: 'YYYY-MM-DD HH:mm:ss', to: 'YYYY-MM-DD HH:mm:ss'} }

    Install

    npm i dclib-ngx-daterangepicker

    DownloadsWeekly Downloads

    6

    Version

    0.2.3

    License

    MIT

    Unpacked Size

    356 kB

    Total Files

    26

    Last publish

    Collaborators

    • digitalcubedeveloper