Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82710

how can initializing datatable after take my data in FIREBASE?

$
0
0

I have a problem when I take my data from FireBase and tried to display this data in the data table, because datatable Initializes before

My code is this:

$(document).ready(function(){

firebase.database().ref('Usuarios').on('child_added',function(snapshot) {
    var dataSet = [[snapshot.key, snapshot.val().Nombre];

});

$('#myTable').DataTable({
    "bFilter": false,
    data: dataSet
});

});


Viewing all articles
Browse latest Browse all 82710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>