Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

94
Visualizações
Pass another parameter to Fulcalendar

Here is the code, the "events: url," part of the code is coming through into my fullcalendar.js file and adds the events however I also want to add a list of users from json data like so users:'urlusers'

Will I have to edit the fullcalendar.js file and if so where can I add another parameter for the users.

$(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 Respostas
Responde à pergunta

0

Not the solution I was thinking of but got the result.

on the events: 'https://events.com/eventsjson', I needed to add more data to the JSON then the fullcalendar sorted the rest out for me

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda