11.0.0 • Published 3 years ago
ngx-calender v11.0.0
Angular based plug and play calender component
Screenshot
Installation
npm install ngx-calender --save
Usage
Import the calendar Module
import { NgxCalenderModule } from 'ngxCalender';
// other imports
@NgModule({
imports: [
// other imports
NgxCalenderModule
],
// ...
})
export class AppModule {}
Add selector in template file my-component.html
<ng-calender (clickedDate)="clickHandler()" ></ng-calender>
Where
clickHandler: clicked handler on date and it return the clicked date as Date like:
eg: Wed Dec 18 2020 00:00:00 GMT+0200 (Central European Summer Time)
Access the variable from calender component
Access it like:
@ViewChild('calender') private calender: NgxCalenderComponent;
// then you can access some public variables:
currentDate: string;
currentMonth: string;
currentYear: number;
eg:
ngAfterViewInit() {
console.log(this.calender.currentDate, this.calender.currentMonth, this.calender.currentYear);
}
unit test coming soon.
Running end-to-end tests
coming soon.
Further help
pull request always welcome!!!
Future Plan
- Able to move previous/next month
- Able to move previous/next year
- Able to return current week details
- ...
11.0.0
3 years ago
6.0.2
6 years ago
6.0.1
6 years ago
6.0.0
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.0.0
6 years ago