kekeh / angular-mydatepicker

Angular datepicker and date range picker :date:
https://kekeh.github.io/angular-mydatepicker/
MIT License
1 stars 11 forks source link

Add ability to control which selection view to display #48

Closed arnebratt closed 4 years ago

arnebratt commented 4 years ago

Not certain this is the correct way of doing it, but it seems to work.

codecov-commenter commented 4 years ago

Codecov Report

Merging #48 into master will decrease coverage by 0.45%. The diff coverage is 22.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
- Coverage   90.94%   90.49%   -0.46%     
==========================================
  Files          21       21              
  Lines        1358     1367       +9     
  Branches      301      304       +3     
==========================================
+ Hits         1235     1237       +2     
- Misses        123      130       +7     
Impacted Files Coverage Δ
.../src/lib/components/calendar/calendar.component.ts 88.88% <16.66%> (-1.04%) :arrow_down:
...mydatepicker/src/lib/angular-mydatepicker.input.ts 85.15% <33.33%> (-0.48%) :arrow_down:

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 0af8e2f...d9c4353. Read the comment docs.

kekeh commented 4 years ago

This PR is not needed. There is option defaultView which can be used. Here is an example.