OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

dragged event in fullcalendar with resourcetimeline [duplicate]

  • Thread starter Thread starter mohammed naseralla
  • Start date Start date
M

mohammed naseralla

Guest
need dragged event 'class="external-event"' from start and end date with choose resource and without change start and end date

Code:
calendar = new FullCalendar.Calendar(calendarEl, {
plugins: ['interaction', 'resourceTimeline'],

<div id="external-events">
            <!-- PHP loop to generate draggable events -->
            @foreach ($events as $event)
                <div class="external-event"
                     data-event='{ "title": "{{ $event->title }}"
                                             , "id": "{{ $event->id }}"
                                             , "start": "{{ $event->start }}"
                                             , "end": "{{ $event->end }}"
                                             , "description": "{{ $event->resourceId }}"'

                     id="event_{{ $event->id }}"
                     data-id="{{ $event->id }}"
                     data-title="{{ $event->title }}"
                     data-start="{{ $event->start }}"
                     data-end="{{ $event->end }}"
                     data-resource-id="{{ $event->resourceId }}"
                     data-description="{{ $event->description }}"
                     style="background-color: {{ 'green' }}; color: white;">
                    {{ $event->description }}
                </div>
            @endforeach
            <div class="checkbox">
                <label for="drop-remove">
                    <input type="checkbox" checked="checked" readonly id="drop-remove">
                    remove after drop
                </label>
            </div>
        </div>

with thanks

<p>need dragged event 'class="external-event"' from start and end date with choose resource and without change start and end date</p>
<pre><code>calendar = new FullCalendar.Calendar(calendarEl, {
plugins: ['interaction', 'resourceTimeline'],

<div id="external-events">
<!-- PHP loop to generate draggable events -->
@foreach ($events as $event)
<div class="external-event"
data-event='{ "title": "{{ $event->title }}"
, "id": "{{ $event->id }}"
, "start": "{{ $event->start }}"
, "end": "{{ $event->end }}"
, "description": "{{ $event->resourceId }}"'

id="event_{{ $event->id }}"
data-id="{{ $event->id }}"
data-title="{{ $event->title }}"
data-start="{{ $event->start }}"
data-end="{{ $event->end }}"
data-resource-id="{{ $event->resourceId }}"
data-description="{{ $event->description }}"
style="background-color: {{ 'green' }}; color: white;">
{{ $event->description }}
</div>
@endforeach
<div class="checkbox">
<label for="drop-remove">
<input type="checkbox" checked="checked" readonly id="drop-remove">
remove after drop
</label>
</div>
</div>

</code></pre>
<p>with thanks</p>
 

Latest posts

M
Replies
0
Views
1
Muhammad Ikhwan Perwira
M
Top