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

229
Visualizações
I want #tabulator to show loader when data is loading and throw error when no data is available

I am using the latest version 5.0 so i am using the dataloaders instaed of ajax but still not working, i am fetching data from a database using meteor.call()

height: "100%",
dataLoader: true,
dataLoaderLoading:"<div style='display:inline-block; border:4px solid #333; border-radius:10px; background:#fff; font-weight:bold; font-size:16px; color:#000; padding:10px 20px;'>Loading Data</div>",
dataLoaderError: "<div style='display:inline-block; border:4px solid #D00; border-radius:10px; background:#fff; font-weight:bold; font-size:16px; color:#590000; padding:10px 20px;'>Loading Error</div>",
data: this.selector.get(),
layout: "fitColumns", 
placeholder: "No Data Available",
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Tabulator does not consider it to be an error when the table is empty, this is a perfectly valid state for the table.

In order to do this you would need to override the ajax request promise function using the ajaxRequestFunc property, and the return a promise that resolves the data if the request is successfull and has data, and rejects if the request fails or there is no data.

For full details checkout the Overriding the Ajax Request Promise Documentation

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