Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
Firestore datos a Datatable por página

Intento usar Datatable para mostrar datos de Firestore.

 firestore.collection('users').onSnapshot(function(snapshots) { if (!snapshots.empty) { let data = []; snapshots.forEach(function(doc) { data.push([doc.id, doc.data().name, doc.data().score, moment(doc.data().createdAt.toDate()).format("YYYY-MM-DD HH:mm")]) }) $("#users_table").DataTable({ data: data, "responsive": true, "lengthChange": false, "autoWidth": false, "buttons": ["copy", "csv", "excel", "pdf", "print"] }).buttons().container().appendTo('#users_table_wrapper .col-md-6:eq(0)'); } else { } });

Sin embargo, este código no es razonable porque importa todos los datos de la colección de usuarios a la vez.

Quiero importar los datos de Firestore por página como la llamada api ajax.

https://datatables.net/examples/server_side/pipeline.html

¿Hay alguna buena manera de llamar y mostrar los datos de Firestore por página usando Datatable?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!