Hi,
I'm using angularJs and the Scheduler. I found related question
https://forums.daypilot.org/question/2974/drop-events-outside-scheduler and I do have the functionality implemented using context menu, but I also want to have the same functionality with the drag/drop. I have the following directive (called clipboard) with the following html:
<div id="clipboardPanel"
class="panel-container scrollable">
<div class="panel-group" id="clipboardAccordion" role="tablist">
<div class="panel panel-primary" ng-class="{'clipboard-header': @(vm).expandClipboard}">
<div class="panel-heading">
<span class="panel-title" role="button" ng-click="@(vm).expandClipboard=!@(vm).expandClipboard" data-toggle="collapse" href="#cliboardBody">
<i class="fa fa-chevron-up"
ng-if="@(vm).expandClipboard && @(vm).bookings.length>0"
data-toggle="collapse" href="#cliboardBody"></i>
<i class="fa fa-chevron-down"
ng-if="!@(vm).expandClipboard && @(vm).bookings.length>0"
data-toggle="collapse" href="#cliboardBody"></i>
@Labels.clipboard
</span>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="resort">
<span for="resort">@Messages.clipboardResort</span>
</div>
</div>
</div>
<div id="cliboardBody" class="panel-collapse collapse"
ng-class="{in: @(vm).expandClipboard}">
<div class="panel-body content-body">
<div class="clipboard-item"
ng-repeat="booking in @(vm).bookings track by $index">
<div daypilot-draggable object="booking">
<div class="text left">
{{booking.text}}
</div>
</div>
<div class="reload right">
<button ng-click="@(vm).undoClipboard(booking, $index)">
<i class="fas fa-undo"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
How can I allow the events to be dropped on clipboard?
Thanks in advance.