Last Updated: 13 Jun 2019 05:13 by ADMIN
Created on: 06 Jun 2019 09:53
Category: Scheduler
Type: Feature Request
Setting a template for the event's drag-hint

In the jQuery Scheduler, the event template was also used for the drag hint. This allowed me to change the appearance of the drag hint according to the drag hint's position.

In the Angular Scheduler, the drag hint seems to show a static transparent copy of the event being dragged.

It will be really useful to have the drag-hint use the event template and also provide a boolean stating whether the event using the template is a drag hint.


Here's an example:

<ng-template kendoSchedulerEventTemplate let-event="event.dataItem" let-resources="resources" let-dragHint="isDragHint">
    <div [style.background-color]="calculateBackground(event, resources)" *ngIf="!dragHint; else: dragHintTemplate">>
        Regular Event

    <ng-template #dragHintTemplate>
        <div [style.background-color]="calculateBackground(event, resources)">
            Drag Hint