question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scheduler dayClick Right-Click (FullCalendar v3.9.0)

See original GitHub issue

Hi,

I first looked for topics related to this possibility but the answers always concern the right-click on the events (No problem with that). I’m looking for a way to call right-click on empty slots in “timelineDay” view

The goal is to generate a context menu to copy/cut an event and then paste it to another date on a free slot.

I modified the source code but it is really not ideal. Line 13682 of fullcalendar.js

component.bindDateHandlerToEl(el, 'contextmenu', function (ev) { if (!component.shouldIgnoreMouse() && ev.which == 3) { return dragListener.startInteraction(ev); } ev.preventDefault(); });

Then at initialization, I can do:

dayClick: function(date, jsEvent, view, resourceObj) { if(jsEvent.which == 3) { console.log('Right-Click ' + resourceObj.id + ' on date ' + date.format('YYYY-MM-DD HH:mm')); } }

Sometimes I get js errors (maybe related to drag functions) and it breaks all the functions.

Is there a simple way to capture the right-click on dayClick?

I specify that https://github.com/mherrmann/fullcalendar-rightclick is not usable with scheduler on the view “timelineDay”. I ran a lot of posts on StackOverflow and here but with no success for several days.

Thank you in advance for your help which I think will serve a lot of people.

I have no jsfiddle for the time because the function is not implemented. I’m just looking for advices et I apologize if I made mistake by submitting this. This is my first post on Github 😉

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
acerixcommented, Dec 20, 2018

dayClick only supports left clicking currently, so there’s no easy way to tell which time slot was right-clicked on but that could be a useful feature. There’s a related issue to add this for agendaView: https://github.com/fullcalendar/fullcalendar/issues/2748

Aside from modifying the source, you could also listen for contextmenu on the entire calendar, then calculate which resource/time was clicked based on the position of the click.

0reactions
arshawcommented, Jun 26, 2020

i’ve repurposed this existing ticket to be about right-click on date cells in the general sense: https://github.com/fullcalendar/fullcalendar/issues/2748 ↑ Could you please visit the link, give a 👍 to vote (?), press the 🔈Subscribe button to receive updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

dayClick - Docs v3 - FullCalendar
dayClick. Triggered when the user clicks on a date or a time. ... Since the introduction of the Scheduler plugin, this callback reports...
Read more >
Full calendar business hour constrain on day click event
My advice would be not to use "dayClick" to create events (i.e. in your case to book appointments). The way recommended by fullCalendar...
Read more >
fullcalendar/CHANGELOG.md - UNPKG
The CDN for fullcalendar. ... 38, v3.9.0 (2018-03-04) ... 93, - when custom view navigates completely into hidden weekends, JS error ([scheduler-375]).
Read more >
@fullcalendar/icalendar | Yarn - Package Manager
@fullcalendar/icalendar. owner fullcalendar7.8kMIT5.11.3TS. Fetch events from a public iCalendar / .ics feed. readme. FullCalendar.
Read more >
Feature-rich And Draggable Event Calendar Plugin
3rd plugins: fullcalendar-rightclick.js: right click plugin; swipecalendar: provides swiping/sliding capabilities. Table Of Contents:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found