Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
/* calendar.cmp */
<aura:component implements="flexipage:availableForAllPageTypes" access="global">
  <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
  <aura:attribute
    name="dynamicFilters"
    type="Object"
  />
  <B25:multiCalendarWrapper
    calendarId="Resources"
    view="week"
    startDate="2024-04-12"
    dynamicFilters="{!v.dynamicFilters}"
  >
  </B25:multiCalendarWrapper>
</aura:component>

/* calendarController.js */
({
  doInit: function (cmpcomponent, event, helper) {
    component.set("v.dynamicFilters", {
        hideRowsWithoutReservations: true,
        availableResourceFilter: {
            enabled: true,
            fromDateTime: '2024-04-12T12:30:00.000Z',
            untilDateTime: '2024-04-19T12:30:00.000Z'
        }
    });
  }
})

...