8.0.5 • Published 2 years ago

ess-calendar-control v8.0.5

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Getting Started

Build process

  • Ensure that dependencies are installed: npm install
  • Run the build statement: npm run build

Dependencies (replace with relevant version)

<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://common.essolutions.com.au/ess-calendar-control/ess-calendar-control@8.0.5.js"></script>

Important notes

  • System must be capable of running a 'getdata' (Web Integration) call
  • getdata call is run with 'MODE=SUMMARY'. This means only 'summary' question types will be delivered. You must ensure any answers to be displayed on the calendar must have a 'summary' question type.

Usage

<div class="ess-calendar-root" id="jobsCalendar"></div>
<script>
    const initialiseReactApp = (targetId, data) => {
        // Create custom build event
        const buildEvent = new CustomEvent('build', {
            detail: {
                data: data,
            },
        });

        // Dispatch the event.
        const target = document.getElementById(targetId);
        target.dispatchEvent(buildEvent);
    };
</script>
<script>
    const CONFIG = {
        title: 'Jobs Calendar', // Calendar title (only visible if isFullScreen = true)
        fid: 147, // Form FID (e.g. 'Jobs' Form)
        height: '100vh', // Calendar height (defaults to 450px, or 100vh if isFullScreen = true)
        isCompact: false, // Enable reduced padding to minimise calendar height
        isViewOnly: false, // Disable add/edit entry UI
        isMonthOnly: false, // Disable week view
        isFullScreen: true, // Enable fullscreen view with sidebar
        isEntryLinkHidden: false,  // Disable edit/view entry buttons in popover
        fields: {
            title: 'JobTitle',
            info: 'JobDescription', // Only relevant for add/edit UI (when isViewOnly = false)
            image: 'Images',
            start: 'ScheduledStartDate',
            end: 'ScheduledEndDateIfMoreThanOneDay',
            group: { label: 'Status', fid: 135, isRelateMany: false }, // Form details to group and colour entries
            filter: { label: 'Strategy', fid: 529 }, // Additional form used for further filtering (only if isFullScreen = true)
            popover: ['FieldStaffAssignedToTask', 'Strategy', 'JobDescription'], // Fields to display in popover
        },
    };

    // Initialise calendar
    document.addEventListener('DOMContentLoaded', () => {
        initialiseReactApp('jobsCalendar', CONFIG);
    });
</script>
8.0.5

2 years ago

8.0.4

2 years ago

7.3.1

2 years ago

7.3.0

2 years ago

7.1.2

2 years ago

7.1.1

2 years ago

7.1.0

2 years ago

7.2.1

2 years ago

7.2.0

2 years ago

8.0.1

2 years ago

8.0.0

2 years ago

8.0.3

2 years ago

8.0.2

2 years ago

5.0.9

2 years ago

5.0.8

2 years ago

5.0.7

2 years ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.10

2 years ago

5.0.11

2 years ago

5.0.12

2 years ago

5.0.13

2 years ago

6.0.0

2 years ago

7.0.0

2 years ago

7.0.3

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

5.0.0

2 years ago

4.0.9

2 years ago

4.0.8

2 years ago

4.0.5

2 years ago

4.0.7

2 years ago

4.0.6

2 years ago

4.0.4

2 years ago

4.0.1

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

1.1.1

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

2.0.2

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

4.0.0

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago