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

158
Visualizações
Tabulator throws error when adding an empty row with datetime formatter

I have the following code (just a button, one column and one row)

    <div class='btn-toolbar'>
        <button id='new' class='btn buttons m-2 mdi mdi-plus' onclick="NewClick()" type="button">New</button>
    </div>
    <div id="example-table"></div>
<script>
    // Tabulator

    var tblTestTabelle_40028804 = new Tabulator("#example-table", {
        height: "311px", selectable:true, 
        "data": [
            {
                "1A27078D-D7D4-434E-AD90-D825276756FC": "06.03.2021",
                "id": "3432938F-A7AB-4F12-B756-E645093D4439"
            }
        ],
        "columns": [
            {
                "title": "Date",
                "field": "1A27078D-D7D4-434E-AD90-D825276756FC",
                "formatter": "datetime", formatterParams:{
                    inputFormat:"dd.MM.yyyy",
                    outputFormat:"DD",
                    invalidPlaceholder:"(invalid date)",
                }
                
            }
        ],
        layout: "fitData"

    });
    //basic functionality
    function NewClick() { tblTestTabelle_40028804.addRow(); };
</script>   

When I click the NewButton I get the following JS exception: Uncaught (in promise) Error: fromFormat requires an input string and a format (in luxon.min.js) It sounds to me like a bug in tabulator, that the datetime formatter isn't able to handle adding empty rows, but maybe I'm wrong.

Any help would be appreciated.

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

0

This was a bug in the v5.0 release that has been fixed as of v5.1

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