tui.ngx-calendar icon indicating copy to clipboard operation
tui.ngx-calendar copied to clipboard

undefined values from this.calendar.getDate(), this.calendar.getDateRangeEnd() and this.calendar.getDateRangeStart()

Open dnyanesh-pucsd opened this issue 6 years ago • 1 comments

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 ?

dnyanesh-pucsd avatar Oct 09 '18 16:10 dnyanesh-pucsd

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

abozanona avatar Feb 19 '20 10:02 abozanona