Skip to content

Set cell background instead of holiday event

Seongnoh Sean Yi edited this page Nov 12, 2023 · 1 revision
eventTransformer: (ev) => {
  if (ev.calendarName === 'US Holiday') ev.skip = true
  return ev
},
manipulateDateCell: (cellDom, events) => {
  if (Array.isArray(events) && events.some(e => e.calendarName === 'US Holiday')) {
    cellDom.style.backgroundColor = "rgb(255 0 0 / 20%)"
  }
},

image