Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

224
Views
Adding events to fullcalendar from an object VUE

I'm trying in vue to assign an event object to events but it doesn't show up to me, what am I doing wrong? Data displays correctly in the console but does not appear in the calendar.

import axios from "axios";
import "@fullcalendar/core/vdom";
import FullCalendar from "@fullcalendar/vue3";
import dayGridPlugin from "@fullcalendar/daygrid";
import interactionPlugin from "@fullcalendar/interaction";

export default {
  name: "calendar",
  components: {
    FullCalendar,
  },
  data() {
    return {
      allevents: [],
      calendarOptions: {
        plugins: [dayGridPlugin, interactionPlugin],
        initialView: "dayGridMonth",
        dateClick: this.handleDateClick,
        events: this.allevents,
      },
    };
  },
  mounted() {
    axios
      .get("url_json")
      .then((response) => {
        this.listDataString = JSON.stringify(response.data, null, "\t");
        this.allevents = response.data.result.map(eventnew => ({title: eventnew.subject, start: eventnew.start.dateTime, end: eventnew.end.dateTime, allDay: 'true'}));
        console.log(this.allevents);
        return response;
      });
  },
};
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

the solution is to assign events in mounted this.calendarOptions.events = response.data.result.map(eventnew => ({title: eventnew.subject, start: eventnew.start.dateTime, end: eventnew.end.dateTime, allDay: 'true'}));

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!