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.

More easily toggle event visibility

See original GitHub issue

Originally reported on Google Code with ID 878

Hey,

It would be nice to toggle specific events without removing them from the source. 
or/and adding a "visible" property to the event object. if set to false the event is
not visible in the calendar, and i could do sth like;

$('#calendar').fullCalendar({
  eventClick: function(calEvent, jsEvent, view) {
    calEvent.visible = false;
    $('#calendar').fullCalendar('updateEvent', calEvent);
  }
});

which would hide the event, and reposition the surrounding elements. 

its similar to the Google Calendar where i can toggle specific calendars...

great work by the way....

Reported by kalle.saas on 2011-03-31 12:57:59

Imported with 6 stars.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
superjojo140commented, Jul 8, 2021

My workaround to change a property for all events from one specific eventSource:

    let allEvents = fullCalendarInstance.getEvents();
    for (let ev of allEvents) {
        if (ev.source.id == EVENT_SOURCE_ID) {
            ev.setProp("propertyName", newValue); //see: https://fullcalendar.io/docs/Event-setProp
            ev.setProp("display", "none"); //For example hide all theese events
        }
    }
1reaction
vooxocommented, May 31, 2018

If someone still needs it, there’s an answer on StackOverflow related to this: https://stackoverflow.com/questions/40265496/is-there-a-way-to-toggle-events-visibility-based-on-classname-fullcalendar

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to toggle events visibility based on className ...
I found a solution (thanks to @smcd for the reference). The good way to do this is in the eventRender method of your...
Read more >
How to show, hide & toggle elements on click event or hover ...
You will be able to show or hide content based on click of a button or hover of any button or element. As...
Read more >
Lesson 5: Using Javascript to Hide and Show Content
In this new toggleClock() function, your are using JavaScript to retrieve the clock element, get the current value of its display style, then...
Read more >
Replacing the Toggle Visibility Area Components
Go to the Actions tab, and add a new Screen Event Source. Button Event Source screenshot. Once this is done, new events appear...
Read more >
Triggering Events and Toggle Visibility
Adding the Assets to Matinee and Setting the Tracks · Select the Matinee in the World Outliner or viewport, then in the Details...
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