8.0.5 • Published 6 months ago

ess-calendar-control v8.0.5

Weekly downloads
-
License
-
Repository
-
Last release
6 months 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

6 months ago

8.0.4

6 months ago

7.3.1

6 months ago

7.3.0

6 months ago

7.1.2

7 months ago

7.1.1

7 months ago

7.1.0

7 months ago

7.2.1

7 months ago

7.2.0

7 months ago

8.0.1

6 months ago

8.0.0

6 months ago

8.0.3

6 months ago

8.0.2

6 months ago

5.0.9

8 months ago

5.0.8

8 months ago

5.0.7

8 months ago

5.0.6

8 months ago

5.0.5

8 months ago

5.0.4

8 months ago

5.0.3

8 months ago

5.0.2

8 months ago

5.0.10

8 months ago

5.0.11

8 months ago

5.0.12

8 months ago

5.0.13

8 months ago

6.0.0

8 months ago

7.0.0

7 months ago

7.0.3

7 months ago

7.0.2

7 months ago

7.0.1

7 months ago

5.0.0

9 months ago

4.0.9

9 months ago

4.0.8

9 months ago

4.0.5

9 months ago

4.0.7

9 months ago

4.0.6

9 months ago

4.0.4

9 months ago

4.0.1

11 months ago

4.0.3

11 months ago

4.0.2

11 months ago

1.1.1

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

2.0.2

12 months ago

3.0.4

12 months ago

3.0.3

12 months ago

3.0.2

12 months ago

3.0.1

12 months ago

3.0.6

12 months ago

3.0.5

12 months ago

4.0.0

11 months ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.14

12 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago