feat: add calendar with week numbers example (#5515)

This commit is contained in:
Sergey Andrievskiy 2019-09-20 16:14:25 +03:00 committed by Maksim Karatkevich
parent 6a9a33d0de
commit 01fc61f7a6
3 changed files with 58 additions and 16 deletions

View file

@ -0,0 +1,23 @@
<div class="calendars">
<div class="calendar-container">
<span class="subtitle">
Selected date: {{ date | date }}
</span>
<nb-calendar [(date)]="date" [boundingMonth]="true" showWeekNumber></nb-calendar>
</div>
<div class="calendar-container">
<span class="subtitle">
Selected range: {{ range.start | date }} - {{ range.end | date }}
</span>
<nb-calendar-range [(range)]="range"></nb-calendar-range>
</div>
<div class="calendar-container">
<span class="subtitle">
Selected date: {{ date2 | date }}
</span>
<nb-calendar
[(date)]="date2"
[dayCellComponent]="dayCellComponent"
></nb-calendar>
</div>
</div>