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

271
Visualizações
Display multiple years in FullCalendar month timeline view?

I am trying to use the timeline view to have a slick and easy interface to move an event to a given month (I can handle the day of month logic). The issue I have is I am now stuck in a given year:

enter image description here

In this example I want to drag the event back to Dec 2021.

Unless I am missing something there is no way to show more than 12 months. If I could at least show the previous Dec and next Jan I could trigger a re-render of the view after the event drop and then drag again.

Any suggestions on how to implement this? I have the drop callback working just fine - just can't seem to figure out an easy way to

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

By creating a custom view using the various view settings, you can set the duration of the timeline to pretty much any length of time you wish.

Here's an example which displays 2 years at a time:

views: {
  resourceTimelineYears: {
    type: 'resourceTimeline',
    duration: { years: 2 },
    buttonText: '2 Years',
    slotDuration: { months: 1 }
  }
},

Demo: https://codepen.io/ADyson82/pen/mdMeLbJ

(N.B. This code assumes you're using fullCalendar 5.x, although similar code would work in earlier versions too.)

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