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

480
Visualizações
In handsontable after select a day from date picker new row added

I'm using handsontable version 10, I have a issue after selecting a date from date picker it will added a new row. How I can disable that? But I need to get a new row with "enter key"

any one can test with this code,

document.addEventListener("DOMContentLoaded", function() {
var container2 = document.getElementById('example2'),
hot2;


hot2 = new Handsontable(container2, {
data: Handsontable.helper.createSpreadsheetData(5, 5),
colHeaders: true,
minSpareRows: 1,
columns: [
    {
        type: 'date',
        dateFormat: 'MM/DD/YYYY',
        correctFormat: true,
        datePickerConfig: {
            firstDay: 0,
            showWeekNumber: true,
            numberOfMonths: 1,
            licenseKey: 'non-commercial-and-evaluation',
            disableDayFn(date) {
                // Disable Sunday and Saturday
                return date.getDay() === 0 || date.getDay() === 6;
            }
        }
    },
    {
        type: 'text',
    },
    {

    },
    {

    }
    ]  });});
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

In your settings, there's a minSpareRows: 1 which adds a new line in the table each time you feel any of those cells in the last row

Handsontable adds a new row with minSpareRows

so when you pick a date in the cell index 5 app automatically adds a new row.

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