File tree 2 files changed +6
-1
lines changed
projects/demos/app/demo-modules/drag-to-create-events
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ export class DemoComponent {
61
61
62
62
dragToCreateActive = false ;
63
63
64
+ weekStartsOn : 0 = 0 ;
65
+
64
66
constructor ( private cdr : ChangeDetectorRef ) { }
65
67
66
68
startDragToCreate (
@@ -79,7 +81,9 @@ export class DemoComponent {
79
81
this . events = [ ...this . events , dragToSelectEvent ] ;
80
82
const segmentPosition = segmentElement . getBoundingClientRect ( ) ;
81
83
this . dragToCreateActive = true ;
82
- const endOfView = endOfWeek ( this . viewDate ) ;
84
+ const endOfView = endOfWeek ( this . viewDate , {
85
+ weekStartsOn : this . weekStartsOn
86
+ } ) ;
83
87
84
88
fromEvent ( document , 'mousemove' )
85
89
. pipe (
Original file line number Diff line number Diff line change @@ -58,5 +58,6 @@ <h3>{{ viewDate | calendarDate:('weekViewTitle') }}</h3>
58
58
[viewDate] ="viewDate "
59
59
[events] ="events "
60
60
[hourSegmentTemplate] ="weekViewHourSegmentTemplate "
61
+ [weekStartsOn] ="weekStartsOn "
61
62
>
62
63
</ mwl-calendar-week-view >
You can’t perform that action at this time.
0 commit comments