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

87
Views
Pasar otro parámetro a Fulcalendar

Aquí está el código, los "eventos: url", parte del código llega a mi archivo fullcalendar.js y agrega los eventos; sin embargo, también quiero agregar una lista de usuarios de datos json como usuarios: 'urlusers'

¿Tendré que editar el archivo fullcalendar.js y, de ser así, dónde puedo agregar otro parámetro para los usuarios?

 $(document).ready(function() { var calendar = $('#calendar').fullCalendar({ defaultView: 'agendaWeek', minTime: "08:00:00", maxTime: "20:00:00", editable:false, header:{ left:'prev,next today', center:'title', }, events: 'https://events.com/eventsjson', users:'https://events.com/usersjson', selectable:true, selectHelper:true, select: function(start, end, allDay) { var titlestart = $.fullCalendar.formatDate(start, "DD-MM-Y HH:mm:ss"); var r = confirm("Request Time " + titlestart); if (r == true) { event.preventDefault(); //Open dialog var subject = 'Booking '+titlestart; var emailBody = 'Create booking for '+titlestart showDialog(titlestart); } else { } }, }); });
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No es la solución en la que estaba pensando, pero obtuve el resultado.

en los eventos: 'https://events.com/eventsjson', necesitaba agregar más datos al JSON, luego el calendario completo resolvió el resto por mí

 foreach($result as $row) { $data[] = array( 'id' => $row["user_id"], 'start' => $row["startevent"], 'end' => $row["endevent"], 'backgroundColor' => $row["backgroundColor"], 'borderColor' => $row["borderColor"] ); }
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!