abhishek-mittal / ng-date-picker-advanced

Date Range Picker and Date Picker all in one place. [ Working On It. ]
0 stars 0 forks source link

ng-datepickeradvanced

Greenkeeper badge

Installation


npm install ng-datepickeradvanced

Note*: Bootstrap 4.x.x is required.

import { DatePickeAdvancedModule } from 'ng-datepickeradvanced'

For dropdown style add few lines of code as followed.

Note*: ID is required in case to prevent event emitter from invoking on every instance.

-

  #abDatePicker {
}
#abDatePicker > i {
    color: blueviolet;
    margin: 12px  -39px;
    font-size: 30px;
    position: absolute;
    cursor: pointer;
}

Demo

API

For: app-date-picker-advanced

Name Description
@Input() min: string The minimum valid date.
@Input() max: string The maximum valid date.
@Input() id: string Required if using more than one instance on same component.

For: input - derivative [ABInput]

Name Description
@Input() dateChange: EventEmitter< Object > Emits the output if the value.
@Input() id: string Required if using more than one instance on same component.

Results

Date-Range:

{
    from: {
        date: Date,
        isValid: Boolean
    },
    to: {
        date: Date,
        isValid: Boolean
    }
}

Singular: Date