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

142
Visualizações
Adding Input to day cell in month view of FullCalendar

I'm trying to modify the FullCalendar month view so each day cell has an input element.

Here's my code:

(...)
dayRender: function (date, cell) {
          cell.append('<input type="number" style="margin-top: 60px; width: 30%; margin-left: 2px; z-index: 10; pointer-events: all!important">');
        }
(...)

So far, that input is showing but it doesn't focus on click. How would I go about making it focus?

As you can see, I tried seeting the pointer-events of the input to all, while setting the table pointer-events to none, but the result is the same.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

I know it's probably a bit too late for you to answer this question but this can be fixed with simple CSS by adding higher z-index on calendar background:

 .fc-row .fc-bg {
    z-index: 5;
  }

I hope it helps for someone who was looking for the same problem.

over 4 years ago · Santiago Trujillo Relatório

0

I have been trying and it works handling the event of dayClick. So, when the day is clicked I manually focus the input. Here is the code:

dayClick: function() {
    $(this).find("input").focus();
}

Maybe is not the best solution but it works.

over 4 years ago · Santiago Trujillo 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