Skip to content

Feature request: Cross-calendar filtering - In a view with two calendars is it possible to filter one event in cal0 with event in cal1? #123

Description

@mvphilip

Hello, If I have a calendar with all day events like public holidays, is there any way to filter a second calendar event based on an attribute of the first? If a day is a "holiday", I'd like to not display events from the second calendar. I tried this in a sort:

    calendars: ["Holidays", "Workdays],
    sort: (a,event)=>{
      if ((a.calendarName.search("Holidays") > -1) &&
      (a.title.search("Day Off") > -1) && 
      a.endDate > b.endDate &&
      a.startDate < b.startDate) {
        b.class_name = "day_off"
        b.isCancelled = true
      }
    },

But this is clearly wrong. Would you have any suggestions?

thank you,

-mp

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions