Code Monkey home page Code Monkey logo

fullcalendar-angular's Introduction

FullCalendar Angular Component

The official Angular Component for FullCalendar

Installation

Install the Angular connector, the core package, and any plugins (like daygrid):

npm install @fullcalendar/angular @fullcalendar/core @fullcalendar/daygrid

Usage

First, connect FullCalendarModule to your app module:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FullCalendarModule } from '@fullcalendar/angular';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FullCalendarModule // register FullCalendar with your app
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Then, use the full-calendar component, supplying an options object:

import { Component } from '@angular/core';
import { CalendarOptions } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';

@Component({
  selector: 'app-root',
  templateUrl: `
    <div>
      <h1>Demo App</h1>
      <full-calendar [options]="calendarOptions"></full-calendar>
    </div>
  `,
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  calendarOptions: CalendarOptions = {
    plugins: [dayGridPlugin],
    initialView: 'dayGridMonth',
    weekends: false,
    events: [
      { title: 'Meeting', start: new Date() }
    ]
  };
}

You can even supply nested templates:

<full-calendar [options]="calendarOptions">
  <ng-template #eventContent let-arg>
    <b>{{arg.timeText}}</b>
    <i>{{arg.event.title}}</i>
  </ng-template>
</full-calendar>

Supported Angular Versions

@fullcalendar/angular version 6 supports Angular 12 - 18

Links

History

This project is built and maintained by irustm in partnership with the maintainers of FullCalendar. The project was originally called ng-fullcalendar which can still be found on NPM.

Development

You must install this repo with PNPM:

pnpm install

Available scripts (via pnpm run <script>):

  • build - build production-ready dist files
  • watch - build & watch development dist files
  • start - run a simple example application
  • test - test headlessly
  • test:dev - test interactively
  • clean

fullcalendar-angular's People

Contributors

arshaw avatar irustm avatar josemadev avatar krabbkaka avatar majky14 avatar mariohmol avatar mettyoung avatar mircowidmer avatar tomohiroakutsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fullcalendar-angular's Issues

Cannot read property 'dispatchEvent' of undefined?

Hello, I have a weird problem with the calendar that I can't seem to fix. When I open the calendar it works fine, but when I switch routes and resize the page I get this error.

ERROR TypeError: Cannot read property 'dispatchEvent' of undefined
at HTMLElement.options.windowResize (ng-fullcalendar.es5.js:134)
at constructor.publiclyTrigger (fullcalendar.js:9625)
at constructor.windowResize (fullcalendar.js:10787)
at later (fullcalendar.js:1015)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:425)
at Object.onInvokeTask (core.es5.js:3881)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (zone.js:192)
at webpackJsonp.../../../../zone.js/dist/zone.js.ZoneTask.invokeTask (zone.js:499)
at ZoneTask.invoke (zone.js:488)

This only happens after I view the route that has the calendar and then switch routes. I have tested it on Chrome & IE.

It says it bugs out in this line here.

this.options.windowResize = function (view) {
var /** @type {?} / detail = { view: view };
var /
* @type {?} */ widgetEvent = new CustomEvent('windowResize', {
bubbles: true,
detail: detail
});
elem[0].dispatchEvent(widgetEvent);
};

Have you seen this error or is this just me? Thank you!

Make an event when calendar is fully initialized

For some reason you call setTimeout for 100 millisesonds in ngAfterViewInit. But parent component needs to know when calendar will be ready to accept events.

For example in parent ngAfterViewInit I start calling calendar functions and they fail because calendar is still not even created.

local file

Hi,

I use fullcalendar with "fr locale" and angular-cli

import { FullCalendarModule } from 'ng-fullcalendar';
import `'fullcalendar/dist/locale/fr.js';

When I use ng serve : everything is ok
But with "npm run build" I have this error when I try to access t omy website :

OR Error: Uncaught (in promise): TypeError: Cannot read property 'datepickerLocale' of undefined

TypeError: Cannot read property 'datepickerLocale' of undefined

If I remove "import `'fullcalendar/dist/locale/fr.js';" : everythink is OK....

thanks

When loading events with callback error occurs (TypeError: events.forEach is not a function)

Hi,

I'm loading events with callback function

events: function(start, end, timezone, callback) {
                        Observable.forkJoin(
                            that.selectedSubconstractors.map(subcon => {
                                return that.commonRest.getReservationList(that.loggedUser.contractorId, subcon.id, start.format('YYYY-MM-DD'), end.format('YYYY-MM-DD'))
                                .map(res => res.json());
                            })
                        ) .subscribe(res => {
                            let allEvents = Array.prototype.concat(...res).map(event => {
                                return new Event().deserialize(event);
                            });
                            callback(allEvents);
                        })

The first time is ok, but when I change view an error occurs:

zone.js:192 Uncaught TypeError: events.forEach is not a function
at CalendarComponent.renderEvents (ng-fullcalendar.es5.js:336)
at eval (ng-fullcalendar.es5.js:141)
at Array.forEach ()
at HTMLButtonElement.eval (ng-fullcalendar.es5.js:137)
at HTMLButtonElement.dispatch (jquery.js:5206)
at HTMLButtonElement.elemData.handle (jquery.js:5014)
at ZoneDelegate.invokeTask (zone.js:421)
at Zone.runTask (zone.js:188)
at ZoneTask.invokeTask [as invoke] (zone.js:496)
at invokeTask (zone.js:1517)

It looks like the function events.forEach(function (el) { expest an array of data and not a callback fuction.

Thank you!

Scheduler

Does this module also includes Scheduler for vertical resource view?

Tabs to dropdown menu

Hi, I am trying to use dropdown instead of tabs to select month-week-day. But i think there is not any option to customize view.

Module ''fullcalendar'' has no exported member 'Options'.

I try to use this modul in my project Now
However, when I run my project there was an error in the modul
The error is as follow
ERROR in ../node_modules/ng-fullcalendar/src/calendar.component.d.ts (3,10): Module ''fullcalendar'' has no exported member 'Options'.
Kindly assist me to fix the problem

custom element in eventRender function

Hello! I wanted to make a custom display for the events.
Currently, I use the callback eventRender function in calendarOptions like this:

eventRender: function(event, element) {

  `element.html(
       "<div class='fc-content' data-event-id=" + event.id + ">" + 
           "<div class='fc-title col-xs-3'>" + event.title + "</div>" +
       "</div>"
   );`

}

The callback function eventRender seems to work on 1.1.0 version but it does not seem to work on later versions.
Any ideas on this?

Any idea for how to create calendar event for ng-bootstrap modal popup

Sir, Any idea for how to make your calendar event for ng-bootstrap modal popup ??

ssss
Im attached my sample calendar view, I want to know how to add this event for modal popup?
(I mean When I click the some event i want to show some modal popup, example click on the 16 of December , its has 2 event name , i want to show click 1st event Susena want to display modal popup, click 2nd event name Lahiru want to display modal popup, ) any idea ?
This is my code

index.component.ts

export class IndexComponent {

calendarOptions: Object = {
    height: 'auto',

    defaultDate: '2017-12',
    editable: true,
    eventLimit: true, // allow "more" link when too many events
    navLinks: true,
    resourceAreaWidth: '15%',
    views: {
      timelineThreeDays: {
        type: 'timeline',
        duration: {
          days: 365
        }
      }
    },
    resourceLabelText: 'Rooms',
    resources: [{
      id: 'a',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 1'
    }, {
      id: 'b',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 2',
      eventColor: 'green'
    }, {
      id: 'c',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 3',
      eventColor: 'orange'
    }, {
      id: 'd',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 4',
      children: []
    }, {
      id: 'e',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 5'
    }, {
      id: 'f',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 6',
      eventColor: 'red'
    }, {
      id: 'g',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 7',
      eventColor: 'orange'
    }, {
      id: 'h',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 8',
      eventColor: 'green'
    }, {
      id: 'i',
      Rooms: ' Double Rooms (2)',
      title: 'Room # 9',
      eventColor: 'red'
    }, ],
    events: [


      {
        id: '1',
        resourceId: 'a',
        start: '2017-12-01',
        end: '2017-12-07',
        title: 'Mahesh'
      }, {
        id: '2',
        resourceId: 'b',
        start: '2017-12-12',
        end: '2017-12-15',
        title: 'Anushka'
      }, {
        id: '3',
        resourceId: 'c',
        start: '2017-12-11',
        end: '2017-12-15',
        title: 'Ramesh'
      }, {
        id: '4',
        resourceId: 'd',
        start: '2017-12-11',
        end: '2017-12-19',
        title: 'Susena'
      }, {
        id: '5',
        resourceId: 'e',
        start: '2017-12-15',
        end: '2017-12-28',
        title: 'Lahiru'
      }, {
        id: '6',
        resourceId: 'f',
        start: '2017-12-01',
        end: '2017-12-10',
        title: 'Chamath'
      }, {
        id: '7',
        resourceId: 'g',
        start: '2017-12-10',
        end: '2017-12-11',
        title: 'Channa'
      }, {
        id: '8',
        resourceId: 'h',
        start: '2017-12-09',
        end: '2017-12-14',
        title: 'Ganesh'
      }, {
        id: '9',
        resourceId: 'i',
        start: '2017-12-05',
        end: '2017-12-09',
        title: 'Priya'
      }
    ],
  }

How to added event scheduler

Sir I'm try to added Angular for Full Calendar event scheduler But cant be added correctly for this , I want to know how to added correctly add for angular attached link(Full Calendar Event Scheduler https://fullcalendar.io/js/fullcalendar-scheduler-1.9.1/demos/simple.html) please help me to fix this issue look at my code

**index.component.html**

 <div class="calendar">
    <angular2-fullcalendar [options]="calendarOptions" (initialized)="onCalendarInit($event)"></angular2-fullcalendar>
  </div>
**index.component.ts**

export class IndexComponent {


  calendarOptions: Object = {
    height: 'auto',

    defaultDate: '2017-12',
    editable: true,
    eventLimit: true, // allow "more" link when too many events
    navLinks: true,
    resourceAreaWidth: '15%',
    views: {
      timelineThreeDays: {
        type: 'timeline',
        duration: {
          days: 365
        }
      }
    },
    resourceGroupField: 'Rooms',
    resources: [{
      id: 'a',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 1'
    }, {
      id: 'b',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 2',
      eventColor: 'green'
    }, {
      id: 'c',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 3',
      eventColor: 'orange'
    }, {
      id: 'd',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 4',
      children: []
    }, {
      id: 'e',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 5'
    }, {
      id: 'f',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 6',
      eventColor: 'red'
    }, {
      id: 'g',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 7',
      eventColor: 'orange'
    }, {
      id: 'h',
      Rooms: ' Single Rooms (8)',
      title: 'Room # 8',
      eventColor: 'green'
    }, {
      id: 'i',
      Rooms: ' Double Rooms (2)',
      title: 'Room # 9',
      eventColor: 'red'
    }, ],
    events: [


      {
        id: '1',
        resourceId: 'a',
        start: '2017-12-01',
        end: '2017-12-07',
        title: 'Mahesh'
      }, {
        id: '2',
        resourceId: 'b',
        start: '2017-12-12',
        end: '2017-12-15',
        title: 'Anushka'
      }, {
        id: '3',
        resourceId: 'c',
        start: '2017-12-11',
        end: '2017-12-15',
        title: 'Ramesh'
      }, {
        id: '4',
        resourceId: 'd',
        start: '2017-12-11',
        end: '2017-12-19',
        title: 'Susena'
      }, {
        id: '5',
        resourceId: 'e',
        start: '2017-12-15',
        end: '2017-12-28',
        title: 'Lahiru'
      }, {
        id: '6',
        resourceId: 'f',
        start: '2017-12-01',
        end: '2017-12-10',
        title: 'Chamath'
      }, {
        id: '7',
        resourceId: 'g',
        start: '2017-12-10',
        end: '2017-12-11',
        title: 'Channa'
      }, {
        id: '8',
        resourceId: 'h',
        start: '2017-12-09',
        end: '2017-12-14',
        title: 'Ganesh'
      }, {
        id: '9',
        resourceId: 'i',
        start: '2017-12-05',
        end: '2017-12-09',
        title: 'Priya'
      }
    ],
  }


  onCalendarInit(initialized: boolean) {
    console.log('Calendar initialized');
  }
}

Setting height according to upper container

I am using this calendar in my Angular 4 project. I don't know my problem is a bug or not. But I would like to explain it.
In my scenario, I have a container above the calendar. And I want set height of calendar by (100% - 'above container height'. In calendar it is possible to set height by contentHeight and height property. But this properties only takes number directly. So is there anyway to set this or any update will be on that?

Select / Unselect event emmiter not working

Hello, I'm trying to use the events select and unselect but nothing happens.
In my html I'm using:

<ng-fullcalendar #ucCalendar [options]="calendarOptions"
(eventClick)="eventClick($event.detail)"
(select)="select($event.detail)"
(unselect)="unselect($event.detail)"
(initialized)="initialized()"
(clickButton)="clickButton($event.detail)">

In your documentation says that it's possible but when I'm checking your calendar.component.d.ts only has this emitters:
eventDrop: EventEmitter;
eventResize: EventEmitter;
eventClick: EventEmitter;
clickButton: EventEmitter;
windowResize: EventEmitter;
viewRender: EventEmitter;
viewDestroy: EventEmitter;
eventRender: EventEmitter;

We need an update with this feature.
Thanks

fullCalendar is not a function

version installed "ng-fullcalendar": "1.4.0"

I get the error with a new project that imports your full calendar, and any old projects in which I redeploy.

ERROR TypeError: __WEBPACK_IMPORTED_MODULE_1_jquery___default(...)(...).fullCalendar is not a function
at ng-fullcalendar.es5.js:55

TypeError: __WEBPACK_IMPORTED_MODULE_1_jquery___default(...)(...).fullCalendar is not a function
at CalendarComponent.webpackJsonp.../../../../ng-fullcalendar/ng-fullcalendar.es5.js.CalendarComponent.fullCalendar (ng-fullcalendar.es5.js:195)

Body not rendering without resizing window

Hi,

I am trying to use your library but I can't get the body to be displayed. As shown by the screenshot, I only have the header.

screen shot 2018-02-02 at 10 09 55

I reduced the https://stackblitz.com/edit/ng-fullcalendar-demo at the very minimum code and it's working there, so I assume I am missing something on my side, but can't figure out what.

Setup:

fullcalendar: 3.6.1
ng-fullcalendar: ^1.4.6
jquery: 3.3.1

It's worth noting that I have my fullcalendar working with an angularJS wrapper, I'm just migrating to Angular 4+.

Thanks.

EDIT: Oh well actually it's just a rendering issue, it gets displayed if I resize the window or click on the next/prev button, not sure why this happens though

npm install ng-fullcalendar

Hello everyone,

When i install ng-fullcalendar i have this problem :
Cannot find module 'fullcalendar'

Any idea please.

Support of all events

why all events provided by original project is not implemented? Events like eventDragStart, eventDragStop is not there. If I am wrong please forgive me and give info about how to implement it.

fullCalendar is not a function

Getting following runtime error while trying to use ng-fullcalendar as in repo description:
ERROR TypeError: __WEBPACK_IMPORTED_MODULE_1_jquery___default(...)(...).fullCalendar is not a function.
I'm using:

  • Angular-cli v1.4.4
  • Angular v4.4.4

Trying to use CalendarComponent from LazyLoaded module.

Any clues on what can be wrong here? For me it seems, that fullCalendar wasn't properly initialized for jQuery, or something similar.

Maybe I'm missing any additional packages?

Module ''fullcalendar'' has no exported member 'Options'

Hi there,

I am getting this error in my machine, but my colleagues are not (ok, you say MY machine is the problem):

/ng-fullcalendar/src/calendar.component.d.ts (3,10): Module ''fullcalendar'' has no exported member 'Options'.

But what can the problem be? We have the same configurations. The only difference is that I am on MacOS and the others are on Windows.

Thanks

IE 11 Error

Hello, I have a problem with the calendar in IE 11, when I first come to the calendar it works. Then I change the view to day, and it still works, but if I change it back to month I get the following error.

ERROR TypeError: Object doesn't support this action

After this the calendar remains empty. Any ideas?

Building and running source code.

Hi,

I forked your code, because I Would like to add some more Callbacks...
Every time I run (after npm install):
npm run-script serve

It return error: jquery_1.default is not a function

Can you help me run this correctly ?

Vertical resource api call doesn't seem to work

ngOnInit() {
this.calendarOptions = {
editable: true,
eventLimit: false,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay,listMonth'
},
events: [
// events go here
],
resources: [{'id':'r1','name':'Resource 1'},{'id':'r2', 'name':'Resource 2'}],
};

}

Update event every month

while using the this.ucCalendar.fullCalendar('rerenderEvents'); funtion it's shows following error
ERROR TypeError: Cannot read property 'fullCalendar' of undefined at SafeSubscriber._next (dashboard.component.ts:96) at SafeSubscriber.webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:238) at SafeSubscriber.webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.next (Subscriber.js:185) at Subscriber.webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber._next (Subscriber.js:125) at Subscriber.webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber.next (Subscriber.js:89) at CatchSubscriber.webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber._next (Subscriber.js:125) at CatchSubscriber.webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber.next (Subscriber.js:89) at MapSubscriber.webpackJsonp.../../../../rxjs/operator/map.js.MapSubscriber._next (map.js:83) at MapSubscriber.webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber.next (Subscriber.js:89) at DeferSubscriber.webpackJsonp.../../../../rxjs/OuterSubscriber.js.OuterSubscriber.notifyNext (OuterSubscriber.js:19) defaultErrorLogger @ core.es5.js:1020 webpackJsonp.../../../core/@angular/core.es5.js.ErrorHandler.handleError @ core.es5.js:1080 next @ core.es5.js:4502 schedulerFn @ core.es5.js:3635 webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:238 webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.next @ Subscriber.js:185 webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber._next @ Subscriber.js:125 webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber.next @ Subscriber.js:89 webpackJsonp.../../../../rxjs/Subject.js.Subject.next @ Subject.js:55 webpackJsonp.../../../core/@angular/core.es5.js.EventEmitter.emit @ core.es5.js:3621 onHandleError @ core.es5.js:3912 webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.handleError @ zone.js:395 webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask @ zone.js:194 webpackJsonp.../../../../zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:499 invokeTask @ zone.js:1349 globalZoneAwareCallback @ zone.js:1358 XMLHttpRequest.send (async) scheduleTask @ zone.js:2526 webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:410 onScheduleTask @ zone.js:300 webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:404 webpackJsonp.../../../../zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:235 webpackJsonp.../../../../zone.js/dist/zone.js.Zone.scheduleMacroTask @ zone.js:258 (anonymous) @ zone.js:2550 proto.(anonymous function) @ zone.js:1222 (anonymous) @ http.es5.js:1275 webpackJsonp.../../../../rxjs/Observable.js.Observable._trySubscribe @ Observable.js:171 webpackJsonp.../../../../rxjs/Observable.js.Observable.subscribe @ Observable.js:159 subscribeToResult @ subscribeToResult.js:22 webpackJsonp.../../../../rxjs/observable/DeferObservable.js.DeferSubscriber._callFactory @ DeferObservable.js:94 webpackJsonp.../../../../rxjs/observable/DeferObservable.js.DeferSubscriber.tryDefer @ DeferObservable.js:85 DeferSubscriber @ DeferObservable.js:81 webpackJsonp.../../../../rxjs/observable/DeferObservable.js.DeferObservable._subscribe @ DeferObservable.js:71 webpackJsonp.../../../../rxjs/Observable.js.Observable._trySubscribe @ Observable.js:171 webpackJsonp.../../../../rxjs/Observable.js.Observable.subscribe @ Observable.js:159 webpackJsonp.../../../../rxjs/operator/map.js.MapOperator.call @ map.js:54 webpackJsonp.../../../../rxjs/Observable.js.Observable.subscribe @ Observable.js:156 webpackJsonp.../../../../rxjs/operator/catch.js.CatchOperator.call @ catch.js:79 webpackJsonp.../../../../rxjs/Observable.js.Observable.subscribe @ Observable.js:156 webpackJsonp.../../../../../src/app/dashboard/dashboard.component.ts.DashboardComponent.getBookingList @ dashboard.component.ts:84 webpackJsonp.../../../../../src/app/dashboard/dashboard.component.ts.DashboardComponent.ngOnInit @ dashboard.component.ts:64 checkAndUpdateDirectiveInline @ core.es5.js:10834 checkAndUpdateNodeInline @ core.es5.js:12330 checkAndUpdateNode @ core.es5.js:12269 debugCheckAndUpdateNode @ core.es5.js:13130 debugCheckDirectivesFn @ core.es5.js:13071 (anonymous) @ DashboardComponent_Host.html:1 debugUpdateDirectives @ core.es5.js:13056 checkAndUpdateView @ core.es5.js:12236 callViewAction @ core.es5.js:12601 execEmbeddedViewsAction @ core.es5.js:12559 checkAndUpdateView @ core.es5.js:12237 callViewAction @ core.es5.js:12601 execComponentViewsAction @ core.es5.js:12533 checkAndUpdateView @ core.es5.js:12242 callWithDebugContext @ core.es5.js:13456 debugCheckAndUpdateView @ core.es5.js:12996 webpackJsonp.../../../core/@angular/core.es5.js.ViewRef_.detectChanges @ core.es5.js:10167 (anonymous) @ core.es5.js:4805 webpackJsonp.../../../core/@angular/core.es5.js.ApplicationRef_.tick @ core.es5.js:4805 (anonymous) @ core.es5.js:4683 webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:391 onInvoke @ core.es5.js:3890 webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:390 webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run @ zone.js:141 webpackJsonp.../../../core/@angular/core.es5.js.NgZone.run @ core.es5.js:3821 next @ core.es5.js:4683 schedulerFn @ core.es5.js:3635 webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:238 webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.next @ Subscriber.js:185 webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber._next @ Subscriber.js:125 webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber.next @ Subscriber.js:89 webpackJsonp.../../../../rxjs/Subject.js.Subject.next @ Subject.js:55 webpackJsonp.../../../core/@angular/core.es5.js.EventEmitter.emit @ core.es5.js:3621 checkStable @ core.es5.js:3855 onHasTask @ core.es5.js:3903 webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.hasTask @ zone.js:444 webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate._updateTaskCount @ zone.js:464 webpackJsonp.../../../../zone.js/dist/zone.js.Zone._updateTaskCount @ zone.js:288 webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask @ zone.js:208 drainMicroTaskQueue @ zone.js:596 Promise resolved (async) scheduleMicroTask @ zone.js:579 webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:413 webpackJsonp.../../../../zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:235 webpackJsonp.../../../../zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:255 scheduleResolveOrReject @ zone.js:830 ZoneAwarePromise.then @ zone.js:919 webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef_._bootstrapModuleWithZone @ core.es5.js:4536 webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef_.bootstrapModule @ core.es5.js:4521 ../../../../../src/main.ts @ main.ts:11 __webpack_require__ @ bootstrap 1a9309144e2beca9700e:54 3 @ main.bundle.js:6947 __webpack_require__ @ bootstrap 1a9309144e2beca9700e:54 webpackJsonpCallback @ bootstrap 1a9309144e2beca9700e:25 (anonymous) @ main.bundle.js:1

Vertical Resource View

Hi,
While I'm using vertical resource view, as the number of "Rooms" increases they shrink in size, so is there any way so that we can provide horizontal scrolling in calendars itself so that the size of "Rooms" remain constant.

Update Event

How to update event attributes (color, title...) and render in the calendar?

Module ''fullcalendar'' has no exported member 'Options'.

I'm following your installing structure step by step , Im used Angular 5 , but I had following error

node_modules/ap-angular2-fullcalendar/src/calendar/calendar.d.ts(3,10): error TS2305: Module ''fullcalendar'' has no exported member 'Options'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(695,36): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(696,29): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(697,20): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(759,22): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(775,50): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(988,23): error TS2304: Cannot find name 'JQueryEventObject'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(1401,70): error TS2304: Cannot find name 'JQueryAjaxSettings'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(1603,50): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(1623,50): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(2588,50): error TS2304: Cannot find name 'JQueryPromise'.

how to fix it?
import {Options} from 'fullcalendar'; not valid

Emit event?

this.options.eventClick = function (event) {
let detail: UpdateEventModel = { event: event, duration: null };
var widgetEvent = new CustomEvent('eventClick', {
bubbles: true,
detail: detail
});
elem[0].dispatchEvent(widgetEvent);
};

Couldn't this simply be rewritten to use the eventemitter?
Like:
this.options.eventClick = (event) => {
this.eventClick.emit(event);
};
Or am i missing something here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.