How to use the angular-calendar.CalendarEventTimesChangedEventType.Drop function in angular-calendar

To help you get started, we’ve selected a few angular-calendar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mounthorse-slns / angular-calendar-scheduler / lib / modules / scheduler / calendar-scheduler-cell.component.ts View on Github external
onEventDropped(dropEvent: { dropData?: { event?: CalendarSchedulerEvent } }, segment: SchedulerViewHourSegment): void {
        if (dropEvent.dropData && dropEvent.dropData.event) {
            this.eventTimesChanged.emit({
                type: CalendarEventTimesChangedEventType.Drop,
                event: dropEvent.dropData.event,
                newStart: segment.date,
                newEnd: null
            });
        }
    }
}