npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-fullcalendar2

v0.0.2

Published

[![GitHub issues](https://img.shields.io/github/issues/StickNitro/ngx-fullcalendar.svg)](https://github.com/StickNitro/ngx-fullcalendar/issues) [![GitHub forks](https://img.shields.io/github/forks/StickNitro/ngx-fullcalendar.svg)](https://github.com/Stic

Readme

ngx-fullcalendar

GitHub issues GitHub forks GitHub stars GitHub license

latest npm

This package wraps the fullcalendar module for Angular v6 and above.

Access to the latest changes for fullcalendar v4 alpha 3 (fullcalendar and scheduler) can be found in the upgrade-v4-alpha branch and can be installed from NPM

Installation

Install via NPM

First install the peer dependencies, this is currently based around the fullcalendar v4 package which is in alpha, so install this version

npm install [email protected]
npm install [email protected]

We also need to include moment and dragula

foo@bar:~$ npm install moment dragula

Modify your angular.json to import the relevant scripts and styles, it should look like this:

"styles": [
  ...
  "node_modules/dragula/dist/dragula.min.css",
  "node_modules/fullcalendar/dist/fullcalendar.min.css",
  "node_modules/fullcalendar-scheduler/dist/scheduler.min.css",
  ...
],
"scripts": [
  ...
  "./node_modules/moment/moment.js",
  "./node_modules/dragula/dist/dragula.min.js",
  "./node_modules/fullcalendar/dist/fullcalendar.min.js",
  "./node_modules/fullcalendar/dist/dragula.min.js",
  "./node_modules/fullcalendar-scheduler/dist/scheduler.min.js"
]

Finally, install ngx-fullcalendar

foo@bar:~$ npm install ngx-fullcalendar

Getting Started

Import the NgxFullCalendarModule (see test application).

import { NgxFullCalendarModule } from 'ngx-fullcalendar';

@NgModule({
  imports: [
    BrowserModule,
    NgxFullCalendarModule,
    ...
  ],
  ...
})
export class AppModule { }

Use ngx-fullcalendar in your app-component.html template.

<ngx-fullcalendar defaultView="month" [events]="events" [options]="options"></ngx-fullcalendar>

And in your app-component.ts component class:

import { FullCalendarOptions, EventObject } from 'ngx-fullcalendar';

@Component({
  selector: 'app-root',
  templateUrl: './app-component.html'
})
export class AppComponent implements OnInit {
  options: FullCalendarOptions;
  events: EventObject[];

  ngOnInit() {
    this.options = {
      defaultDate: '2018-07-26',
      editable: true,
      ...
    };

    this.events = [
      { id: 'a', title: 'My Birthday', allDay: true },
      { id: 'b', title: 'Friends coming round', start: '2018-07-26T18:00:00', end: '2018-07-26T23:00:00' }
    ]
  }
}

Inputs and Outputs

You can initialize the ngx-fullcalendar with the FullCalendarOptions object or by specify the various options directly on the component, all properties in the FullCalendarOptions can be set directly on the component itself.

export interface FullCalendarOptions {
  header?: any;
  isRTL?: boolean;
  weekends?: boolean;
  hiddenDays?: number[];
  fixedWeekCount?: boolean;
  weekNumbers?: boolean;
  businessHours?: any;
  height?: any;
  contentHeight?: any;
  aspectRatio?: number;
  eventLimit?: any;
  defaultDate?: any;
  locale?: string;
  timezone?: boolean | string;
  timeFormat?: string | null;
  editable?: boolean;
  droppable?: boolean;
  eventStartEditable?: boolean;
  eventDurationEditable?: boolean;
  defaultView?: string;
  allDaySlot?: boolean;
  allDayText?: string;
  slotDuration?: any;
  slotLabelInterval?: any;
  snapDuration?: any;
  scrollTime?: any;
  minTime?: any;
  maxTime?: any;
  slotEventOverlap?: boolean;
  nowIndicator?: boolean;
  dragRevertDuration?: number;
  dragOpacity?: number;
  dragScroll?: boolean;
  eventOverlap?: any;
  eventConstraint?: any;
  dayRender?: Function;
  navLinks?: boolean;
}

There are also the following events that can be bound:

  • onDayClick: Is emitted when the user clicks on a day in the fullcalendar.

    • 'date': the moment like date that was clicked
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
    • 'resourceId': (optional) will be populated if dropped on a Scheduler resource
  • onDrop: Is emitted when a valid external UI draggable has been dropped onto the calendar.

    • 'date': the moment like date that was clicked
    • 'jsEvent': the native javascript event object
    • 'resourceId': will be populated if dropped on a Scheduler resource
  • onEventClick: Is emitted when an event is clicked.

    • 'calEvent': the calender event object
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
  • onEventMouseover: Is emitted when the mouse is moved over an event.

    • 'calEvent': the calender event object
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
  • onEventMouseout: Is emitted when the mouse is moved away and is no longer over an event.

    • 'calEvent': the calender event object
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
  • onEventDragStart: Is emitted when event dragging begins.

    • 'event': the calender event object
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
  • onEventDragStop: Is emitted when event dragging stops.

    • 'event': the calender event object
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
  • onEventDrop: Is emitted when dragging stops and the event has moved to a different day/time.

    • 'event': the calender event object
    • 'delta': is a Duration object that represents the amount of time the event was moved by
    • 'revertFunc': is a function that, if called, reverts the event’s start/end date to the values before the drag
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
  • onEventReceive: Is emitted when a valid external UI draggable, containing event data, has been dropped onto the calendar.

    • 'event': the calender event object
  • onEventResizeStart: Is emitted when event resizing begins.

    • 'event': the calender event object
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
  • onEventResizeStop: Is emitted when event resizing stops.

    • 'event': the calender event object
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
  • onEventResize: Is emitted when resizing stops and the event has changed in duration.

    • 'event': the calender event object
    • 'delta': is a Duration object that represents the amount of time the event was moved by
    • 'revertFunc': is a function that, if called, reverts the event’s start/end date to the values before the drag
    • 'jsEvent': the native javascript event object
    • 'view': A reference to the current view
  • onViewRender: Is emitted when a new date-range is rendered, or when the view type switches.

    • 'view': A reference to the current view
    • 'element': Is an element for the container of the new view
  • onViewDestroy: Is emitted when a rendered date-range needs to be torn down

    • 'view': A reference to the current view
    • 'element': Is an element for the container of the new view
  • onNavLinkDayClick: Is emitted upon a day heading nav-link being clicked.

    • 'weekStart': the view name (string), function
    • 'jsEvent': the native javascript event object
  • onNavLinkWeekClick: Is emitted upon a week-number nav-link being clicked.

    • 'weekStart': the view name (string), function
    • 'jsEvent': the native javascript event object
  • onEventRender: Is emitted while an event is being rendered. A hook for modifying its DOM.

    • 'event': the calender event object
    • 'element': Is an element for the container of the new view
    • 'view': A reference to the current view
  • onEventDestroy: Is emitted before an event’s element is removed from the DOM.

    • 'event': the calender event object
    • 'element': Is an element for the container of the new view
    • 'view': A reference to the current view
  • onEventAfterRender: Is emitted after an event has been placed on the calendar in its final position.

    • 'event': the calender event object
    • 'element': Is an element for the container of the new view
    • 'view': A reference to the current view

API

View the Official fullcalendar docs for full details of the API.

TODO

  • Support all remaining events
  • Fully support Scheduler properties
  • Enhance access to API

License

MIT