Skip to content

Commit c78dea5

Browse files
committed
docs(week-view): add note about using weekStartsOn in the title
Closes #1048
1 parent 54cc36a commit c78dea5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

projects/angular-calendar/src/modules/week/calendar-week-view.component.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,9 @@ export class CalendarWeekViewComponent implements OnChanges, OnInit, OnDestroy {
404404
@Input() tooltipDelay: number | null = null;
405405

406406
/**
407-
* The start number of the week. This is ignored when the `daysInWeek` input is also set as the `viewDate` will be used as the start of the week instead
407+
* The start number of the week.
408+
* This is ignored when the `daysInWeek` input is also set as the `viewDate` will be used as the start of the week instead.
409+
* Note, you should also pass this to the calendar title pipe so it shows the same days: {{ viewDate | calendarDate:(view + 'ViewTitle'):locale:weekStartsOn }}
408410
*/
409411
@Input() weekStartsOn: number;
410412

0 commit comments

Comments
 (0)