tui.ngx-calendar
tui.ngx-calendar copied to clipboard
undefined values from this.calendar.getDate(), this.calendar.getDateRangeEnd() and this.calendar.getDateRangeStart()
onCalendarNext() { debugger; console.log(this.calendar.getDate()); console.log(this.calendar.getDateRangeEnd()); console.log(this.calendar.getDateRangeStart()); this.calendar.next(); }
I am able to load and render calender . even all other features are working fine except i am getting undefined values for this.calendar.getDate(), this.calendar.getDateRangeEnd() and this.calendar.getDateRangeStart()
Am i missing any configuration which is causing this issue ?
You're not missing anything. I thing the issue is in the ng implementation.
In ngx-tui-calendar.component.d.ts
file, the implementation of all the get{Something}
methods return void
instead of returning the expected value.
It looks like the support has stopped on this repo.
If anyone wants to fix this issue, he has to clone the repo, and add return
keywork to the get{Something}
functions in all of the ngx-tui-calendar.js
files.
Alternatively, You can install a fix immediately by npm i abozanona/tui.ngx-calendar