Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fullcalendar angular add events

  calendarOptions = {
    height: '100%',
    fixedWeekCount: false,
    defaultDate: moment().format('YYYY-MM-DD'),
    allDaySlot: false,
    displayEventTime: true,
    editable: true,
    eventLimit: true,
    lazyFetching: false,
    nowIndicator: true,
    refetchResourcesOnNavigate: true,
    events: [],
    plugin: [dayGridPlugin, interactionPlugin],
    dateClick: this.getAppointmentsForSpecificDate.bind(this), // this line
  };

  etAppointmentsForSpecificDate(arg) {
    console.log(args)
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fullcalendar #angular #add #events
ADD COMMENT
Topic
Name
8+3 =