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

Don't know how to get row.add() and draw() to work properly.

$
0
0
$('table#js-datatables').DataTable({
                    pageLength: 5,
                    searching: false,
                    ordering: false,
                    lengthChange: false,
                    info: false,
                    "language": {
                        "paginate": {
                            "previous": "«",
                            "next": "»"
                        }
                    },
                });

$('table#js-datatables.js-ajalugu').DataTable().row.add( [thing1,thing2,thing3] ).draw(false);
So while trying to simply add a row, firstly it doesn't add anything and I don't get an error either.
Secondly the draw will reset the initial options of the table, is it required to put things like the pageLength into each Datatable() function with the draw?
What syntax does it require?


Viewing all articles
Browse latest Browse all 82714

Trending Articles



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