ngx-aaa-datepicker
v0.0.5
Published
A datepicker that picks single, multiple and range type dates.
Downloads
7
Maintainers
Readme
ngx-aaa-datepicker
A datepicker that picks single, multiple and range type dates.
Preview
Demo
Check out the Angular Material implementation of ngx-aaa-datepicker Github
How to
module.ts
import { NgxAaaDatepickerModule } from 'ngx-aaa-datepicker';
@NgModule({
declarations: [],
imports: [
NgxAaaDatepickerModule,
...
],
providers: [],
});
component.ts
export class ExampleComponent {
pickerModes: AAAPickerModes = {
single: true, // disable/enable single date picker mode
multi: true, // disable/enable multiple date picker mode
range: true // disable/enable range date picker mode
}
getDate(event) {
console.log(event); // logs the picked date data
}
}
component.html
<ngx-aaa-datepicker [pickerModes]='pickerModes' (getDate)='getDate($event)'></ngx-aaa-datepicker>
Licence
MIT