area below timeline resources available for dateClick
See original GitHub issueWhen filterResourcesWithEvents
is set to true
, dayClick
is not triggering when there are no visible resources. Is this a bug or a feature? Any workaround?
https://codepen.io/anon/pen/aGyPPr Works on May 4th (as there are visible resources) Doesn’t work on May 6th (as there are NO visible resources)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
dateClick - Docs - FullCalendar
dateClick ; An HTML element that represents the whole-day that was clicked on. · The native JavaScript event with low-level information such as...
Read more >Mac | Online Resources
On this part of the website, you have free access to up to date click-by-click instructions for NVivo on Mac. Simply click on...
Read more >How Project schedules tasks: Behind the scenes
To find the Project start date or to change it to another date, click Project, and then click Project Information. Of course, there...
Read more >Resources for Current Users of the Colorado Performance ...
This page is organized as an example timeline of common activities within COPMS to ... The below webinars are short training videos intended...
Read more >Revised Interim Enforcement Procedures for Reporting ...
By telephone or in person to the OSHA Area Office that is nearest to the site of ... Additional resources are available at...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hi @lorinkoz , @acerix 's explanation was a potential workaround that you’d hypothetically be able to implement, however, now that I’m trying to step through exactly how you might do it, it seems rather unreasonable/impossible.
Acerix was right: the dayClick handler was only meant to be fired if the click happens on a time slot that’s associated with a resource. Changing this behavior for a 3.x release would be a bad idea because it would break compatibility. I’l consider a solution that addresses this for v4.
In the meantime, I can suggest a workaround, but it’s more of a UI workaround than a code workaround… I assume you pop up some type of dialog box after the user clicks the time slots they desire. You probably ask for the new event’s name or other data. What you can do is attach a click handler that fires when we know there is no resources for the current day. Then, you could pop up your dialog and make sure to ask the user for the time of their event in the dialog.
I wrote a way to achieve this at the bottom of your js bin: https://codepen.io/anon/pen/VdPozq?editors=0010
Does that make sense?
Not sure why in my code it’s overriding normal
eventClick
. Gotta investigate.