Versions Compared

Key

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

...

This example illustrates how to use viewOffset to display a two-week schedule as two one-week calendars on top of each other.

Code Block
languagehtml
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
    <!-- component showing the first week (no offset) -->
    <B25:multiScheduleWrapper
        recordId="{!v.recordId}"
        calendarName="Schedule"
        colors="B25__Colors__c"
        titles="Name"
    />
    <!-- component showing the second week (7 day offset) -->
    <B25:multiScheduleWrapper
        recordId="{!v.recordId}"
        calendarName="Schedule"
        colors="B25__Colors__c"
        titles="Name"
        viewOffset="7"
    />
</aura:component>