Closed xuhcc closed 4 years ago
Merging #23 into master will increase coverage by
0.01%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #23 +/- ##
=========================================
+ Coverage 93.18% 93.2% +0.01%
=========================================
Files 20 20
Lines 1116 1118 +2
Branches 235 235
=========================================
+ Hits 1040 1042 +2
Misses 76 76
Impacted Files | Coverage Δ | |
---|---|---|
...mydatepicker/src/lib/angular-mydatepicker.input.ts | 89.82% <100%> (+0.07%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 4dd2c1b...22c053c. Read the comment docs.
You can use calendarToggle callback: https://github.com/kekeh/angular-mydatepicker#calendartoggle-callback
Example: https://github.com/kekeh/angular-mydatepicker/wiki/calendarToggle-callback
I know, but I would prefer to use returned value as it better suits my needs.
Ok. I merged this PR. Install latest version from npm.
The return value only indicates was the operation open or close. The close operation is always asychronous if calendar animations are used so in that case the toggleCalendar() may return before the calendar has closed.
Thanks!
So we can use it like that: