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

129
Visualizações
refresh data in dataTable when column is reordered in javaScript

I have a dataTable component in my Vuejs application, that I use to display tables. It has a 'data' prop value that allows it to take the data to show in the table. here is how I call the component:

<aDataTable :data="sites">
        <template #columns> <!-- showing columns here --> </template >
        <template #rows> <!-- showing rows here --> </template >
<aDataTable>

I would like to be able to refresh the data when one of the column headers is clicked. I would like the sorting to be done on the server-side, hence why im doing it this way. This is kind of what I would like to do but not sure how

$('#data-table').on('order.dt', function () { 
       // gets the value of the header of the column and using to sort the data in the table
}

Any idea how one can do this?

about 4 years ago · Juan Pablo Isaza
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