0.0.1 • Published 10 years ago
fl-multi-calendar v0.0.1
fl-multi-calendar
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 --saveNPM
npm install fl-multi-calendar --saveBuild tools
Before building fl-multi-calendar from source run:
npm install
bower installBuild
Builds from source
npm run buildDemo
Runs a server and opens the demo page in your browser.
npm run demoDev
Runs build, demo and watches changes to build again.
npm run devTest
Runs test suite.
npm run test0.0.1
10 years ago