Jump to content

Calendar Block Event Change

Recommended Posts

Please see Calendar Block Event Change.

Altering the events in a Calendar block can be tricky because the events are loaded in a lazy fashion. This means you need a MutationObserver to watch for the events to be loaded so you can alter them.

My code is a base effect. It does not make changes on its own. It just does the watching for you. From there it is up to you to write callbacks to do the actual work. This isn't the end all be all of MO's but may be able to help in many cases.

After using the basic structure of this code for several effects I figured why not break it out and share! đŸ™‚

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Ă—
Ă—
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.