Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

159
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda