fl-multi-calendar

0.0.1 • Public • Published

fl-multi-calendar

Build Status

Visualise multiple people's schedules in one page

Usage

fl-multi-calendar depends on x-div which is a Web Component. Check the browser support if you are taking it to production. You may need to use a polyfill.

The following example loads fl-multi-calendar from /build/multi-calendar.js and initialises with the configuration object myConfig. The referenced configuration object must be in the global namespace.

HTML

<x-div data-controller="/build/multi-calendar" data-config="myConfig"></x-div>

JavaScript

var myConfig = {
  loadUrl: 'http://localhost:5000',
 
  loadingAnimationStart: function () {},
  loadingAnimationStop: function () {},
 
  calendars: [{
    name: 'Karl Marx',
    uid: '12345',
    description: 'Software Developer', //optional
    titleClick: function () {},
    dayHeaderClick: function () {},
    eventClick: function () {},
  }, {
    name: 'Friedrich Hegel',
    uid: '7899',
    description: 'HR Manager', //optional
    titleClick: function () {},
    dayHeaderClick: function () {},
    eventClick: function () {},
  }, {
    name: 'Immanuel Kant',
    uid: '23456',
    description: 'Research and Revelopement', //optional
    titleClick: function () {},
    dayHeaderClick: function () {},
    eventClick: function () {},
  }, ],
};

Events

  • multiCalendarAllEventsRendered - Triggered when all calendars finished loading and displaying their events. It is also triggered on calendar reload.

The calendars also emit all events from fullCalendar.

Installation

Bower

bower install fl-multi-calendar --save

NPM

npm install fl-multi-calendar --save

Build tools

Before building fl-multi-calendar from source run:

npm install
bower install

Build

Builds from source

npm run build

Demo

Runs a server and opens the demo page in your browser.

npm run demo

Dev

Runs build, demo and watches changes to build again.

npm run dev

Test

Runs test suite.

npm run test

Package Sidebar

Install

npm i fl-multi-calendar

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • fourlabsldn