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

130
Vistas
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 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